//WAP TO CHECK ANY NO IS EVEN OR ODD.
//WAP To Check Any No Is Even Or Odd.
#include<stdio.h>
void main()
{
int no;
printf("\n Enter any no"):
scanf("%d" , &no);
if(no%2==0)
printf("\n no is even");
else
printf("\n no is odd");
}
OR
#include<stdio.h>
void main()
{
int no;
printf("\n Enter any no");
scanf("%d" , &no);
if(no%2)
printf("\n no is odd");
else
printf("\n no is even");
}
-SHAHRUKH KHAN(CSE)
Comments
Post a Comment