write a program to input 3 numbers and print the average of these number
Answers
Answered by
1
Explanation:
C Program
#include <stdio.h>
#include <conio.h>
int n1,n2,n3;
float avg;
printf("\nENTER THREE NUMBERS: " );
scanf("%d %d %d",&n1,&n2,&n3);
avg=(n1+n2+n3)/3;
printf("\nAVERAGE: %0.2f",avg);
Similar questions