diff options
author | RossTheRoss <msattr@gmail.com> | 2019-02-12 21:02:35 +0000 |
---|---|---|
committer | RossTheRoss <msattr@gmail.com> | 2019-02-12 21:02:35 +0000 |
commit | b22bd929c4dd07f172ca4c4f59d41e89765200c6 (patch) | |
tree | 6ce994416b65ee3d7e73727831f5d48c555012c4 | |
parent | Parenthesis are hard pt. 2 (diff) | |
download | homework-b22bd929c4dd07f172ca4c4f59d41e89765200c6.tar homework-b22bd929c4dd07f172ca4c4f59d41e89765200c6.tar.gz homework-b22bd929c4dd07f172ca4c4f59d41e89765200c6.tar.bz2 homework-b22bd929c4dd07f172ca4c4f59d41e89765200c6.tar.lz homework-b22bd929c4dd07f172ca4c4f59d41e89765200c6.tar.xz homework-b22bd929c4dd07f172ca4c4f59d41e89765200c6.tar.zst homework-b22bd929c4dd07f172ca4c4f59d41e89765200c6.zip |
Bool>int
Diffstat (limited to '')
-rw-r--r-- | misc/test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/test.cpp b/misc/test.cpp index 50d244b..40e15c5 100644 --- a/misc/test.cpp +++ b/misc/test.cpp @@ -3,7 +3,7 @@ using namespace std; int main () { unsigned long long x,i; - int a; + bool a; cout << "Enter a number:"; cin >> x; for (i=x; i>1; --i) @@ -16,7 +16,7 @@ int main () { return i; } } - if (a!=1) + if (!a) cout << "Prime!" << endl; return 0; } |