Write a program to find given number is odd or even

#include<stdio.h>
#include<conio.h>
int main()
{
int no;
printf("enter the number");
scanf("%d",&no);
if(no%2==0)
printf("number is even");
else
printf("number is odd");
}

No comments:

Post a Comment