Computer Science, asked by rushilansari, 10 months ago

Program Using- (Accepting arguments through main() method)
To find sum and average of 3 numbers

Answers

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