| |
Program to check whether a given number is divisible by 5 and 7
include<stdio.h>
main()
{
int n;
clrscr();
printf("\nEnter a number :");
scanf("%d",&n);
if(n%5==0&& n%7==0)
printf("\n%d is divisible by 5 and 7",n);
else
printf("\n%d is not divisible by 5 and 7 ",n);
getch();
}
Please send comments to vgdarur.javafive@blogger.com
|