div by 97

 Div by  a no.(say 97):


#include <iostream>

#include<cmath>

using namespace std;


int main() {

    int a;

    cout<<" no : ";

    cin>>a;

    

    if (a%97==0){

        cout<<" no is div by 97";

    }

    

    else if(a%97!=0){

        cout<<" no. isnt div by 97";

        

    }

  

    

    

   


    return 0;

}

Comments

Popular posts from this blog

Sum of Even Numbers till N

Find the Runner-Up Score!

Print All Substrings