Technology News, Micromax, Mobiles Flashing Software, Flash Tool, Pokemon GO Apk, Income Online, Moto G4 Plus, Sony PC, Latest Version, samsung note, Huawei Smartphone

Tuesday, December 3, 2013

C# program to Check leap Year Using Conditional Statement

C# program to Check leap Year Using Conditional Statement - technology is getting more advanced every day .. if you want to know the progress that happened please visit this blog Technology News because it will always update the latest information, now we will discuss first about C# program to Check leap Year Using Conditional Statement hopefully this information can answer the questions you submit to google, ok please see:

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();}




information about C# program to Check leap Year Using Conditional Statement has been completed in the discussion

hopefully information C# program to Check leap Year Using Conditional Statement can benefit you in getting the latest information about technology,

you just read the article entitled C# program to Check leap Year Using Conditional Statement if the article feel useful for you please bookmark or share by using link https://micromyaw.blogspot.com/2013/12/c-program-to-check-leap-year-using.html and thank you.

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

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

0 comments:

Post a Comment