Write a program to input marks of three tests of a student (all integers). Then calculate and print the average of all test mark | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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

5th Sep 2023, 6:24 AM
sukhpreet singh
sukhpreet singh - avatar
2 Answers
+ 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
5th Sep 2023, 6:48 AM
Ausgrindtube
Ausgrindtube - avatar
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)
20th Apr 2024, 1:38 PM
Rekha Sharma
Rekha Sharma - avatar