program that print three number, their sum and average using input statment
Answers
Answered by
1
program to calculate sum and average of three numbers:
#include<stdio. h>
int main () {
int a, b, c;
printf("Enter three numbers: ");
scanf("%d %d %d", &a, &b, &c);
int sum = a + b + c;
float avg = sum / 3.0;
printf("Sum = %d, Average = %f", sum, avg);
Answered by
0
microsoft word or microsoft logo
Similar questions