Write an Algorithm to calculate and print the sum and average of three numbers.
Answers
Answered by
0
Answer:
#include <stdio.h>
int main()
{
int a,b,c;
printf("Enter 3 numbers:\n");
scanf("%d%d%d",a,b,c);
printf("The sum is: %d\n",a+b+c);
printf("The average is: %d\n",(a+b+c)/3);
return 0;
//written in C
Similar questions