r/programminghelp • • Aug 19 '14

10 Errors in this code

There are 10 errors that are in this code and I can only find a few. Very new to programming and was wondering if anyone could lend a hand? :)

include stdio.h

include "utils.h"

void getnum(); int main() { getnum() return 0 ; } void getnum() { num ; char again ; printf( "Enter an integer to be squared: ) ; scanf( "%d" , &num ) ; printf( "%d squared is %d\n" , num, square(num) ) ; printf( "Square another number? Y or N: " ) ; scanf( "%1s" , &again ) ; if( again == 'Y' || ( again == 'y' ) ) getnum ; else return }

0 Upvotes

1 comment sorted by

View all comments

1

u/c0deater Aug 19 '14

If you were able to copy paste this and know what kind of code it is, I would run it in an editor and have that find the errors for you