Friday, 19 July 2013

Program to Print all Number Divided by 3 (1 to 50)

#include <stdio.h>
void main()
{
int a;
clrscr ();
printf("Enter the Value\n");
for (a=1;a<=50;++a)
{
if (a%3==0)
printf("\n%d",a);
}
getch();

}

No comments:

Post a Comment