Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 02 / example2.cpp
diff options
context:
space:
mode:
Commit28b23f81c94e3884981a6d8da600ebd4785a6a5a (patch)
Author
 Angel Dimitriev <achi_d@abv.bg>
2021-10-14 13:14:01 +0300
Committer
 GitHub <noreply@github.com>
2021-10-14 13:14:01 +0300
Files3e03ad92fcde4a22d0e0a0e427713a0ed9e5f8c9 /Sem. 02/example2.cpp
Introduction_to_programming_FMI-28b23f81c94e3884981a6d8da600ebd4785a6a5a.tar
Introduction_to_programming_FMI-28b23f81c94e3884981a6d8da600ebd4785a6a5a.tar.gz
Introduction_to_programming_FMI-28b23f81c94e3884981a6d8da600ebd4785a6a5a.zip
Parent0c10109811fb1afa12f3b6b1428f59e007e34d5c (diff)
Update example2.cpp
1 files changed, 4 insertions, 2 deletions
-rw-r--r--Sem. 02/example2.cpp6
diff --git a/Sem. 02/example2.cpp b/Sem. 02/example2.cpp
index 34e8db1..d8bd3ef 100644
--- a/Sem. 02/example2.cpp
+++ b/Sem. 02/example2.cpp
@@ -1,12 +1,14 @@
#include <iostream>
using namespace std;
+Задача: Въвежда се число между 1 и 10. Отпечатайте дали е просто.
+
int main()
{
int number;
cin >> number;
-
- if (number <= 0 || number > 10)
+
+ if (number < 1 || number > 10)
{
cout << "Invalid input!" << endl;
}