Feb 24, 2007

C program to generate even numbers

C program to generate even numbers using while loop.
#include<stdio.h>
main()
{
int a=0;
clrscr();
while (a<20)
{
a=a+2;
printf("\n%d",a);
}
getch();
}

No comments:

Post a Comment

Infolinks In Text Ads

Total Pageviews

Powered by Blogger.

Dont Forget To Follow Us

Blog Archive