Well, you tell us. Does it print the sum and the average? If it does, then why do you think it might not be?
If you enter 5,10,15,20,25, the average should be 15 and the sum 75. Do you get those results or something else?

every time i run it i get an error which is weird so i dunno if its my but do what xpi0t0s said cause you know hes right lol.

It does seem abit.... werid cause ive done this but i did it a diffrent way. Where the user just input 6 values i then would use scanf to get those values then at the end do g=a+b+c+d+e+f for sum and then do g/6.0=your average.

@ TriG0rZ.....what you are doing is that you know there is six values to come....what if there are 66 values??? Surely you aren't gonna use 66 scanf's for them...and not as well 66 variables to declare and your sum= a1+ a2+ a3+ .....a66....you will simply become crazy!!!....that's what the array is for...

You can use for loop to get all the values with just one scanf and again a for loop to get their sum as well....

@ TriG0rZ.....what you are doing is that you know there is six values to come....what if there are 66 values??? Surely you aren't gonna use 66 scanf's for them...and not as well 66 variables to declare and your sum= a1+ a2+ a3+ .....a66....you will simply become crazy!!!....that's what the array is for...

You can use for loop to get all the values with just one scanf and again a for loop to get their sum as well....

yep what you said is 100% true and i never thought about that one lol so thanks