Fix errors in mC example inputs (thanks Markus)

This commit is contained in:
Markus Kopp
2019-03-31 17:13:11 +02:00
committed by Alex Hirsch
parent 14da3497ed
commit 88e52e7828
7 changed files with 30 additions and 17 deletions

View File

@@ -2,7 +2,8 @@
bool is_square(int n)
{
int i = 0;
int i;
i = 0;
while(i*i < n){
if(i*i == n){
return true;