Computer Science, asked by savitajaiswar2935, 8 months ago

Write a program to check whether a int type number (taken as input) is a 3-digit number divisible by three or not

Answers

Answered by srajfaroquee
6

Answer:

#include<iostream>

using namespace std;

int main() {

int num ;

cout<<"Enter a 3 digit number: " ;

cin>>num ;

if( num % 3 == 0 ) {

cout<<"\nEntered number is divisible by 3." ;

}

else {

cout<<"\nEntered number is not divisible by 3. " ;

}

return 0;

}

**Please mark this answer as Brainliest answer. Thank you!

Answered by debjitsarkar1962
1

Answer:

Is it C++ or QBasic or Java Script

Similar questions