Problem1577--C Programming Practicals 4 Switch -9

1577: C Programming Practicals 4 Switch -9

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 335  Solved: 157
[Submit] [Status] [Web Board] [Creator:]

Description

Write a C program that read 4 numbers, display the sum of all odd values between them and calculate the average of the odd numbers.

Input

Input the first number: 1 Input the second number: 3 Input the third number: 4 Input the fourth number: 5

Output

Sum of all odd values: 9 Average of all odd values: 3.000000

Sample Input Copy

1
3
4
5

Sample Output Copy

Sum of all odd values: 9

Average of all odd values: 3.000000

Source/Category

124