int main(void)
{
int n;
printf("enter year (like this 2005) :");
scanf("%d",&n);
if(n%4==0 && n%100 !=0 || n%400==0)
printf("%d is leap year \n",n);
else
printf("%d is not leap year\n ",n);
return 0;
}
Programming Sample Code, Source Code, Example Codes
If need to be any Kind of email Us cprogrammerbd@gmail.com.
#include stdio #include conio int main() { int i,j,n; printf("Enter Number Of Terms:"); scanf("%d",&n); printf("Prime Numbers Are Follwing "); for(i=2;i<=n;i++) { for(j=2;j<=i;j++) { if(i%j==0) break; } if(i==j) printf("%d",i); } return 0; } Any more about prime number
No comments:
Post a Comment