I have stuck in c programming i need help

#include
#include
int main(void){
float num1, num2, num3, num4, num5, answ1, answ;
printf(“enter your first float number \n”);
scanf(“%.4f”,&num1);
printf(“enter the second number \n”);
scanf(“%.4f”,&num2);
printf(“enter your third number \n”);
scanf(“%.4f”,&num3);
printf(“enter the fourth number \n”);
scanf(“%.4f”,&num4);
printf(“enter your fifth number \n”);
scanf(“%.4f”,&num5);
answ=num1+num2+num3+num4+num5;
answ1=answ/5;
printf(“the sum is %.4f \n”,answ);
printf("the average is %.4f ",answ1);

return 0;

}

and it display this after i run it

69402-problem.png

but i needed user to enter first number second… up to fifth number

As far as I can tell, this has nothing do with the Unreal Engine. Generic programming questions don’t belong here.

But for the record, you’re not reading the values into your variables. Googling for scanf syntax brought up some documentation: http://www.cprogrammingexpert.com/C/Tutorial/io_functions/scanf.aspx

If you have any further questions, pick a site dealing with programming (and C) in general. Try http://stackoverflow.com/