Tecno Android Phones, Samsung Imei Repair, Huawei Mediapad, Official Firmware/ Flash File, WiFi, Alcatel One, Flash Tool Windows, Android Jelly Bean

C# program to Check leap Year Using Conditional Statement

C# program to Check leap Year Using Conditional Statement - we say welcome to the blog Tecno Android Phones we provide a lot of latest gadget information that must be very dear for you to miss, now we will discuss first about C# program to Check leap Year Using Conditional Statement we have collected a lot of information to make this article to complete for you, Please read:

Articles : C# program to Check leap Year Using Conditional Statement
full Link : C# program to Check leap Year Using Conditional Statement
Article Csharp, Article programming, Article programs,

You can also see our article on:


C# program to Check leap Year Using Conditional Statement

C# program to Check Year is leap or not Using Conditional Statement 

Program Statement: 
Write a program using conditional operators to determine whether a year entered through the keyboard is a leap year or not.

Solution:
static void Main(string[] args)
{
int year;
Console.WriteLine("Enter Year");
year = Convert.ToInt32(Console.ReadLine());
Console.WriteLine( year % 4 == 0 ? "Entered year is leap" : "Not leap year");
Console.ReadLine();}




Articles about C# program to Check leap Year Using Conditional Statement finished discussed

We think it is enough information about C# program to Check leap Year Using Conditional Statement , hopefully the information we give can give benefit for you,

If you feel the information C# program to Check leap Year Using Conditional Statement that we provide can provide benefits for others please share with link https://southernmatron.blogspot.com/2013/12/c-program-to-check-leap-year-using.html thank you for visiting our blog page and do not forget to visit other pages.

Tag : , , ,
Share on Facebook
Share on Twitter
Share on Google+

Related : C# program to Check leap Year Using Conditional Statement

0 komentar:

Post a Comment