Write a program in C to check whether a number is divisible by 97 or not.

#include <stdio.h>


int main(){

    int num;


    printf("Enter the number: ");

    scanf("%d", &num);


    if(num%97){

        printf("%d is not divisible by 97.", num);

    } else {

        printf("%d is divisible by 97.", num);

    }


    return 0;

}


Comments