From f9614fcb2b8921d99ce5248c0c1a231432a2f823 Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Tue, 12 Feb 2019 20:39:59 +0000 Subject: Parenthesis are hard pt. 2 --- misc/test.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'misc') diff --git a/misc/test.cpp b/misc/test.cpp index fd9c227..50d244b 100644 --- a/misc/test.cpp +++ b/misc/test.cpp @@ -8,11 +8,13 @@ int main () { for (i=x; i>1; --i) - {if (x%i==0 && x!=i) { + { + if (x%i==0 && x!=i) { cout << "Not prime!" << endl; a=1; break; - return i;}} + return i; } + } if (a!=1) cout << "Prime!" << endl; -- cgit v1.2.3