Saturday, 26 September 2015

Program to find enter no divisible by 7 or not

/*Program to find enter no divisible by 7 or not*/

#include<conio.h>
#include<stdio.h>

void main()
{
int no;
clrscr();
printf("Enter any no");
scanf("%d",&no);
if(no%7==0)
printf("no is divisible by 7");
else
printf("no is  not divisible by 7");
getch();

}

No comments:

Post a Comment