write a javascript program to enter three number .find sum and average
Answers
Answered by
0
Answer:
#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
World Languages,
2 months ago
Political Science,
6 months ago
English,
6 months ago
Science,
11 months ago
Psychology,
11 months ago
English,
11 months ago