prog.c: In function ‘main’:
prog.c:6:2: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘printf’
printf("enter the testinteger");
^~~~~~
prog.c:7:14: error: ‘testinteger’ undeclared (first use in this function)
scanf("%d",&testinteger);
^~~~~~~~~~~
prog.c:7:14: note: each undeclared identifier is reported only once for each function it appears in