1. Write a program to find sum and average of 3 number.
Answers
Answered by
1
Explanation:
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;
Answered by
1
Answer:
#include <stdio.h>
#include <conio.h>
void main()
{
int n1,n2,n3;
float avg;
clrscr();
printf("\nENTER THREE NUMBERS: " );
scanf("%d %d %d",&n1,&n2,&n3);
avg=(n1+n2+n3)/3;
printf("\nAVERAGE: %0.2f",avg);
getch();
}
Explanation:
Hope it helps you :)☺
Similar questions