#include<iostream
>
#include<conio.h
>
using namespace std;
int main()
{
int num;
cout<<"Enter number to check even or odd : ";
cin>>num;
if(num%2==0)
cout<<num
<<" is an even number.";
else
cout<<num
<<" is an odd number.";
getch();
return 0;
}
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