WAP to accept a number and print if the number is divisible by 7
Answers
Answered by
2
Answer:
#include<stdio.h>
int main()
{
int number;
scanf("%d",&number);
if(number%7==0)
printf("%d is divisible by 7",number);
else
printf("%d is not divisible by 7",number);
}
Explanation:
I answered in C language :)
Similar questions