//Write a programe to check whether the number is divisible by 7 or not//
#include<stdio.h>
#include<conio.h>
void main()
{
int a;
clrscr ();
printf("Enter the number ");
scanf("%d",&a);
if(a%7==0)
{
printf("%d is divisible by 7",a);
}
else
{
printf("%d is not divisible by 7",a);
}
getch ();
}
No comments:
Post a Comment