Program Using- (Accepting arguments through main() method)
To find sum and average of 3 numbers
Answers
Answered by
0
Answer:
*mark as the brainliest if useful*
Explanation:
#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);
return 0;
}
Similar questions
Math,
5 months ago
Math,
5 months ago
Computer Science,
10 months ago
Math,
10 months ago
Math,
1 year ago
Social Sciences,
1 year ago