C++
#include
using namespace std;
int main()
{
int n = 0;
cout << "Enter num: ";<br>cin >> n;
if (n >= 100 && n <= 999) {<br> int s = (n / 100) + ((n / 10) % 10) + (n % 10);
if (s % 3 == 0) {
cout << "Num multiple 3" << endl;<br>} else {
cout << "Num not multiple 3" << endl;<br>}
if (s % 5 == 0) {
cout << "Num multiple 5" << endl;<br>} else {
cout << "Num not multiple 5" << endl;<br>}
} else {
cout << "Error!" << endl;<br>}
return 0;
}