Computer Science, asked by debdatta717, 7 hours ago

Write an Algorithm to calculate and print the sum and average of three numbers.​

Answers

Answered by amanthakur2010ak
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