Ответы
Ответ дал:
0
1)
#include <iostream>
using namespace std;
int main()
{
int a;
cin >> a;
if (a % 2 == 0) {
cout << "Is even" << endl;
} else {
cout << "Not even" << endl;
}
return 0;
}
2)
#include <iostream>
using namespace std;
int main()
{
int a;
cin >> a;
if (a % 3 == 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
#include <iostream>
using namespace std;
int main()
{
int a;
cin >> a;
if (a % 2 == 0) {
cout << "Is even" << endl;
} else {
cout << "Not even" << endl;
}
return 0;
}
2)
#include <iostream>
using namespace std;
int main()
{
int a;
cin >> a;
if (a % 3 == 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
Вас заинтересует
2 года назад
3 года назад
3 года назад
9 лет назад
9 лет назад
10 лет назад
10 лет назад