HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Beginner > problem:


50221 - Calculate the Average

Volume problems

• 50164 - The roots of a quadratic eq...
• 50192 - Nr of Missing Guests
• 50193 - Passing the course
• 50194 - OSHEE Electric Bill
• 50217 - Exchange the Values
• 50218 - Say Hello
• 50219 - Win or Lose
• 50220 - Area and Perimeter Of The ...
• 50221 - Calculate the Average
• 50222 - Even or Odd
• 50223 - Average of Test Scores
• 50225 - Convert to Minutes and Sec...
• 50226 - Convert Celsius to Fahrenheit
• 50227 - Smallest Number
• 50228 - Even Numbers
• 50229 - Print All Numbers
• 50230 - ASCII Codes

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.

Calculate the Average

Write a program that asks the user to type 5 integers and than calculates the average of them.

Input: In the first line you will get 5 integer numbers.

Output : Average of the 5 integers numbers (Result may be decimal number).

Sample Input1:

Sample Input2:

4 6 3 7 7

1 2 3 4 5

Sample  Output1:

Sample  Output2:

5.4

3

 

Для отправки решений необходимо выполнить вход.

www.contester.ru