Thursday, June 3, 2021

c++ program check number is divisible by 5 and 11 or not (POP) (99)

#include<iostream>

using namespace std;

int main()

{

int num;

cout<<"please enter a number:"<<endl;

cin>>num;

if(num%5==0 && num%11==0)

{

cout<<"your entered number is divisibal by 5 annd 11";

}

else

{

cout<<"your entered number is not divisibal by 5 and 11";

}

return 0;

} 

No comments:

Post a Comment