CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// originally created by piser fransisko kaunde
#include <iostream>
using namespace std;
int main() {
int population, area;
cin >> population >> area;
cout << population << endl;
cout << area << endl; // if first input is 15000 and second input not provided, it prints 1651076199
cout << (15000 < 10000) << endl; // It evaluates to False, which is 0
cout << (0 || 0) << endl; // It can be considerd as False OR False
if((population < 10000) || (area < 10000)) {
cout << "Small country";
}
else {
cout << "Not small country";
}
return 0;
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run