C# program to Check leap Year Using Conditional Statement - the world of technology is more advanced, we should be technically literate so as not left behind by others, in blogs
Republic Gadget we will present updated information about technological developments, product reviews from various brands, now we will discuss first about this information C# program to Check leap Year Using Conditional Statement we cover directly from reliable sources, 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();}
so much information C# program to Check leap Year Using Conditional Statement
hopefully the infromation that we show for you about C# program to Check leap Year Using Conditional Statement can provide the latest knowledge about the gadgets you need in everyday life.
you've just read the article with the title C# program to Check leap Year Using Conditional Statement if you intend to bookmark or share it for many people please use the link https://bhrepublicadominicana.blogspot.com/2013/12/c-program-to-check-leap-year-using.html still a lot of information on this blog, please visit other pages.
Tag :
Csharp,
programming,
programs,
0 komentar:
Post a Comment