From b22bd929c4dd07f172ca4c4f59d41e89765200c6 Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Tue, 12 Feb 2019 21:02:35 +0000 Subject: Bool>int --- misc/test.cpp | 4 ++-- 1 file 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; } -- cgit v1.2.3