write a program for accepting 3 numbers from the user and adding them and to find the average
50 points
Answers
Answered by
1
C Program
- #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's helpful to you
Answered by
1
Explanation:
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;
Similar questions