Tuesday, 25 February 2014

Tagged Under:

Program that prints the even numbers from 1 to 100

Share















Source Code

#include<stdio.h>
int main()
{
int a;

printf("EVEN NUMBER FROM 1-100:");
printf("\n");
for(a=1;a<=100;a++)
{
if(a%2==0)
printf("%d ",a);
}
return 0;
}

Output


0 comments:

Post a Comment

Contact Us

Want to ask anything? Be our guest, give us a message.

Name Email * Message *