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
Social Sciences,
4 months ago
English,
4 months ago
Math,
4 months ago
Computer Science,
8 months ago
Math,
11 months ago
Computer Science,
11 months ago
Science,
11 months ago