
Ygg
5 год назад
Язык С++Информатика 11 класс

ОТВЕТЫ

Oliver Morgan
Oct 24, 2020
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;
}
976
Смежные вопросы: