Commit a6f72c81 authored by hayk's avatar hayk

Exercise 2.28. Forth commit

parent 5bb6efb6
......@@ -7,6 +7,11 @@ main()
std::cout << "Enter 5 digit number: ";
std::cin >> number;
if (number / 100000 != 0) {
std::cout << "Error 1: Your given number is not 5 digit number.\n";
return 1;
}
std::cout << number / 10000 % 10 << " "
<< number / 1000 % 10 << " "
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment