Tech News Today, Marshmallow Custom Rom, Huawei, Run Programs, Network, Chromebook, Bank Account

Selasa, 03 Desember 2013

C# program to Check leap Year Using Conditional Statement

C# program to Check leap Year Using Conditional Statement - To all visitors of this blog, I say welcome and thank you for visiting the blog Tech News Today Look for all the things you need that are available on this blog. If not available, please leave suggestions and comments for the development of this blog. now we will discuss first about C# program to Check leap Year Using Conditional Statement we have collected a lot of information from sources to create this article, so 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 C# program to Check leap Year Using Conditional Statement has been completed in the discussion.

hopefully the article we give the title C# program to Check leap Year Using Conditional Statement can provide knowledge for you in living everyday life in determining the gadget that suits your needs.

you just read the article about C# program to Check leap Year Using Conditional Statement if this article is useful for you and want to bookmark it or share it please use the link https://sihanandi.blogspot.com/2013/12/c-program-to-check-leap-year-using.html thank you and do not forget to comment if anyone.

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

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

0 komentar:

Posting Komentar