Simple even and odd number program in c language
#include<stdio.h>
#include<conio.h>
main()
{
int i;
clrscr();
for(i=0;i<=30;i++)
{
if(i%2==0)
{
printf("even values are%d",i);
}
else
{
printf("odd number");
}
}
getch();
}
0 comments: