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
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
1
Answer:
Is it C++ or QBasic or Java Script
Similar questions
Math,
5 months ago
English,
5 months ago
Computer Science,
10 months ago
Math,
1 year ago
Computer Science,
1 year ago
Science,
1 year ago