#include”stdio.h”
#include”conio.h”
void main()
{
int i,n;
clrscr();
printf("Enter a value\n");
scanf("%d",&n);
printf("The number divisible by 7 b/w 0 to %d is",n);
for(i=0;i<=n;i++)
{
if(i%7==0)
printf("%d\n",i);
}
getch();
}
OUTPUT WILL BE
Enter a value
50
The number divisible by 7 b/w 0 to 50 is
7
14
21
28
35
42
49
Google Ads
Saturday, May 30, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment