Computer Science, asked by abdulrehman92, 10 months ago

program that print three number, their sum and average using input statment​

Answers

Answered by lovleen403
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 affanali3671
0

microsoft word                           or                                            microsoft logo

Similar questions