Computer Science, asked by khantahmin1, 6 months ago

write a javascript program to enter three number .find sum and average​

Answers

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