+ 2
Solve this question
Write a program to check whether a number is divisible by 97 or not .
5 Respuestas
+ 4
Kunal Pal yes that is correct
+ 3
Attempts?
+ 3
Kunal Pal please read about the modulo
https://www.sololearn.com/Discuss/79519/?ref=app
+ 3
#include<stdio.h>
int main()
{
int number;
printf("enter the number :");
scanf("%d",&number);
if(number % 97 == 0)
{
printf("the number is divisble by 97");
}
else{ printf("the number is not divisble by 97");
}
printf("Hello world!");
return 0;
}
+ 2
If a number is divisible by another number, it means there would be no remainder after the division!