0
Write a program to input marks of three tests of a student (all integers). Then calculate and print the average of all test mark
Input format : 3 Test marks (in different lines) Output format : Average Sample Input 1 : 3 4 6 Sample Output 1 : 4.333333333333333 Sample Input 2 : 5 10 5 Sample Output 2 : 6.666666666666667
2 Antworten
+ 4
That's a cool task. Can you share your code attempt, so we can help?
Read this:
https://code.sololearn.com/Wek0V1MyIR2r/?ref=app
0
num1=3
num2=4
num3=6
Average=(num1+num2+num3)/3
Print (Average)
a=5
b=10
c=5
Average=(a+b+c)/3
Print (Average)