Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Leap Year For User Input in C Language
10-15-2014, 06:51 AM
Post: #1
Leap Year For User Input in C Language
Chek Your Year Leap or Not Leap

#include<stdio.h>
#include<conio.h>

void main()

{

clrscr();

int a;

printf("Enter The Year");
scanf("%d",&a);
}

if(a%4==0)

{

printf("This Is Leap Year");
}

else()

{

printf("This Is Not Leap Year");

}

getch();

}
Visit this user's website Find all posts by this user
Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)