URI Online Judge Solution | 1040 – Average 3

Keep check on the line “Calculate the average with weights 2,3,4 e 1” actually that means you have to use the avergae formula like this

n1*2+n2*3+n3*4+n4*1/(2+3+4+1)

and check this line “followed by the typed score”..You have to input this value before showing

Note: URI,UVA,codeforces and in various online judges there is presentation error if you dont give new line after every output value that means in C you have to give “\n” in every printf/output line otherwise it will show “Presentation Error” on the OJ’s