123456789101112131415161718
#include <iostream> using namespace std; main() { bool a; int x; cout<< "Please enter number higher than 10" << endl << cout<<"If the number is higher than 10 you'll see 1 else 0"; cin>>x; a=(x>10); cout<<a; cin>>x; }
123456
int a; cin>>a; if(a>10) cout<<'1'; else cout<<'0';
cout<< "Please enter number higher than 10" << endl << cout <<"If the number is higher than 10 you'll see 1 else 0";
12
cout<< "Please enter number higher than 10" << endl; cout << "If the number is higher than 10 you'll see 1 else 0";