Friday 4 September 2015

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

#include<stdio.h>
#include<conio.h>
void main()
{int a,b,c;
printf("enter 3 number");
scanf("%d%d%d",&a,&b,&c);
if(a>b&&a>c)
printf("greatest number is:%d",a);
else if(b>c)
printf("greatest number is :%d",b);
else
printf("greatest number is :%d",c);
getch();
}

No comments:

Post a Comment