2
Write a program to make the user input numbers 3 and display the sum and average of
these numbers separately
Answers
Answered by
0
Explanation:
#include<stdio.h>
#include<conio.h>
#include<math.h>
#include<std.lib>
int main()
{
int a,b,c,sum,avg;
printf("ENTER THE THREE NUMBERS:");
scanf("%d%d%d",&a&b&c);
sum=a+b+c;
avg=sum/3;
printf("THE SUM IS:%d",sum);
printf("THE AVERAGE IS:%d",avg);
getch();
}
Similar questions