#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
int year;
cout<<"Enter the year : ";
cin>>year;
if(year%4==0)
cout<<year<<" is a leap year.";
else
cout<<year<<" is not a leap year.";
getch();
return 0;
}
Subscribe to:
Post Comments (Atom)
Python Program to find Fabonacci
fabtab={} def fabonacci(n): fabtab[0]=0 fabtab[1]=1 for i in range(2,n+1): fabtab[i]=fabtab[i-1]+fabtab[i-2] ...
-
#include< iostream > #include< conio.h > #include< math.h > using namespace std; int Octal_to_Binary(long n) { ...
-
fact={} def factorial(n): fact[0]=1 fact[1]=1 if n==0 and n==1: return 1 else: for i in range(2,n+1): ...
-
fabtab={} def fabonacci(n): fabtab[0]=0 fabtab[1]=1 for i in range(2,n+1): fabtab[i]=fabtab[i-1]+fabtab[i-2] ...

No comments:
Post a Comment