1 1 ADMIN 2 Asked: November 19, 20212021-11-19T15:03:04+05:30 2021-11-19T15:03:04+05:30In: Programming Language Write a Program to Calculate Average of Three Numbers in C Language 1 1 Write a Program to Calculate Average of Three Numbers in C Language c language programwrite a program to calculate the average of three numberswrite a program to find average of three numbers Share Facebook 1 Answer Voted Oldest Recent JonSnow07 2021-11-19T18:32:11+05:30Added an answer on November 19, 2021 at 6:32 pm //C Program to Calculate Average of Three Numbers #include <stdio.h> #include <conio.h> int main() { int n1,n2,n3; float avg; printf(“\nEnter three numbers : ” ); scanf(“%d %d %d”,&n1,&n2,&n3); avg=(n1+n2+n3)/3; printf(“\nAverage of the given three numbers is : %0.2f”,avg); return 0; } #To get output download Attachment Attachment Leave an answerCancel replyYou must login to add an answer. Username or email* Password* Remember Me! Forgot Password?
//C Program to Calculate Average of Three Numbers
#include <stdio.h>
#include <conio.h>
int main()
{
int n1,n2,n3;
float avg;
printf(“\nEnter three numbers : ” );
scanf(“%d %d %d”,&n1,&n2,&n3);
avg=(n1+n2+n3)/3;
printf(“\nAverage of the given three numbers is : %0.2f”,avg);
return 0;
}
#To get output download Attachment