0

Program to find out that the entered no. Is divisible by nine or not

14th May 2017, 9:38 AM
Pankaj Tilwani
Pankaj Tilwani - avatar
2 Antworten
+ 3
int no; int main(){ cin>>no; if(no%9==0){ //divisible by 9 } return 0; }
14th May 2017, 9:47 AM
MR Programmer
MR Programmer - avatar
+ 1
you need to research the use of modulus to check if there is a remainder after dividing by 9
14th May 2017, 9:48 AM
Daemo
Daemo - avatar