Computer Science, asked by shambhavimisra9apr20, 9 months ago

Write a program to print the average of three numbers entered by the user. *​

Answers

Answered by seemarajusaini
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 ravitavisen
3

Hey mate ,

Here is your answer :

To compute the average of three numbers:

  1. #include<stdio.h>
  2. #include<conio.h>
  3. void main ()
  4. int N1 , N2 , N3
  5. Float avg
  6. printf("\nEnter Three Numbers
  7. scanf("%d%d%d" , &N1&N2&N3
  8. avg=( N1 +N2+N3 ) /3

Hope it helps you . Please mark me as brainlist .

Similar questions