Conditional Control Statement ? : C Programming /*The easiest way to use conditional control statement*/ #include< stdio.h > #include< conio.h > void main() { int n; n=2014; clrscr(); n%4==0 ? printf("Leap Year") : printf("Not Leap Year"); //OR //printf(n%4==0 ? "Leap Year" : "Not Leap Year"); getch(); } Read more » Tweet Share Share Share Share Related Post
ConversionConversion EmoticonEmoticon