Playground
#include <iostream> using namespace std; int main() { int n; cin >> n; if (n < 10) { cout << "Vnesen e brojot " << n << endl; cout << "Ovoj broj e pomal od 10." << endl; } else { //eden blok moze da sodrzi i samo edna naredba cout << "Ne vnesovte broj pomal od 10." << endl; } return 0; }
Input data
Program output
7
Execute
Language: ????????? | Memory: ???? KB | Time: ??? ms
Nothing has been executed, yet!