write a program to checks whether the number entered by user is exactly divisible by 5 but not by 11.

//write a program to  checks whether the number entered by user is exactly divisible by 5 but not by 11.
#include<stdio.h>
void main()
{
int n;
printf("enter the number\n");
scanf("%d",&n);
if(n%5==0 && n%11!=0)
printf("the number is exactly divisible by 5 only but not by 11");
else
printf("exit");
}

Leave a Reply

Your email address will not be published.