C# program to Check leap Year Using Conditional Statement - every day there is always the latest gadget that is born, if we do not update the information then we will be outdated, even though we do not have the gadget but at least we know the information, on the blog
Darwis Techno we are discussing a lot of information from various brands gadgets, now we will discuss first about C# program to Check leap Year Using Conditional Statement we have gathered information to make this article, please read to finish
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 information C# program to Check leap Year Using Conditional Statement can provide benefits for you in providing information about the latest gadgets from various brands,
you just read the article about C# program to Check leap Year Using Conditional Statement if you intend to bookmark or share this information can use link https://laladarwis.blogspot.com/2013/12/c-program-to-check-leap-year-using.html thank you and do not forget to get back other information
Tag :
Csharp,
programming,
programs,
0 komentar:
Post a Comment