In series or Many of numbers are Odd or Even.Here I am finding odd or even numbers with the using of C language.
Input :
#include<stdio.h>
#include<conio.h>
void main()
{
int no;
clrscr();
printf("enter no");
scanf("%d",&no);
if(no%2==0)
{
printf("no is even");
}
else
{
printf("no is odd");
}
getch();
}
Output :
Input :
#include<stdio.h>
#include<conio.h>
void main()
{
int no;
clrscr();
printf("enter no");
scanf("%d",&no);
if(no%2==0)
{
printf("no is even");
}
else
{
printf("no is odd");
}
getch();
}
Output :
0 comments:
Post a Comment