Powered By Blogger

Monday, May 4, 2009

C Programming

#include
#include
void main()
{
clrscr();
int n,i=1;
printf("Input number is:");
scanf("%d",&n);
printf("\nEven number is:");
while(i
{
if(i%2==0)
printf("%d, ",i);
i=i+1;
}
i=1;
printf("\n\nOdd number is:");
while(i
{
if(i%2!=0)
printf("%d,",i);
i=i+1;
}


getch();
}

0 comments:

About This Blog

This is an important blog about updated news about computer science and technology.

Blog Archive

Visitors

  © Free Blogger Templates Blogger Theme II by Ourblogtemplates.com 2008

Back to TOP