Friday 4 September 2015

Write a program to display all numbers between 1 and 200, which are divisible by 7 and 3.

#include<stdio.h>
#include<conio.h>
void main()
{int a;
printf("all number divisible by 7and3 between 1-200:");
for(a=1;a<=200;a++)
if(a%7==0&&a%3==0)
printf("\n%d",a);
getch();
}

No comments:

Post a Comment