Write a program using LET statement to find the average of three numbers.
Anyone please tell me the correct answer and I will mark you the brainliest.
Answers
Explanation:
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;
HI....
Explanation:
To compute the average of three given numbers using C
1. #include <stdio.h>
1. #include <stdio.h>2. #include <conio.h>
1. #include <stdio.h>2. #include <conio.h>3. void main()
1. #include <stdio.h>2. #include <conio.h>3. void main()4. int n1,n2,n3;
1. #include <stdio.h>2. #include <conio.h>3. void main()4. int n1,n2,n3;5. float avg;
1. #include <stdio.h>2. #include <conio.h>3. void main()4. int n1,n2,n3;5. float avg;6. printf("\nENTER 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);
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;