write a program in basic to find the average of three number
Answers
Answered by
2
Answer:
To compute the average of three given numbers using C
#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;
More items...
Similar questions
Computer Science,
1 month ago
Physics,
1 month ago
Math,
3 months ago
Math,
9 months ago
English,
9 months ago