#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int n;
bool b = cin >> n;
cout << "correct: "
<< (b ? "yes" : "no")
<< endl;
return 0;
}вывод:
12 correct: yes dd correct: no
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int n;
bool b = cin >> n;
cout << "correct: "
<< (b ? "yes" : "no")
<< endl;
return 0;
}12 correct: yes dd correct: no
Слава Украіні!
Комментариев нет:
Отправить комментарий