C program to find sum and average of three numbers
Answers
Answered by
7
Answer:
#include<stdio.h>
#include<conio.h>
void main()
{
int n,sum=0,a,b,c;
printf("enter the3 numbers");
scanf(%d%d%d",&a,&b,&c);
sum=a+b+c;
avg=sum/3;
printf("\nsum of 3 numbers =%d",sum);
printf("\naverage of 3 numbers=%d",avg);
getch();
}
Explanation:
Similar questions
Art,
5 months ago
Math,
5 months ago
Computer Science,
11 months ago
Social Sciences,
1 year ago
Math,
1 year ago
Math,
1 year ago