Write a program to print the average of three numbers entered by the user. *
Answers
Answered by
1
Answer:
The printf function displays the messages to the user “Enter three Numbers:”. Later using scanf function three numbers are stored in the variables num1, num2, and num3. The scanf function reads the numbers until the user enters not enters the three numbers.
Explanation:
Please follow me
Answered by
3
Hey mate ,
Here is your answer :
To compute the average of three numbers:
- #include<stdio.h>
- #include<conio.h>
- void main ()
- int N1 , N2 , N3
- Float avg
- printf("\nEnter Three Numbers
- scanf("%d%d%d" , &N1&N2&N3
- avg=( N1 +N2+N3 ) /3
Hope it helps you . Please mark me as brainlist .
Similar questions
CBSE BOARD XII,
4 months ago
Science,
4 months ago
Science,
9 months ago
Social Sciences,
9 months ago
Math,
1 year ago
Social Sciences,
1 year ago