Computer Science, asked by spg0470, 1 day ago

write the java script form of sum and average of given three numbers a=5,b=7,c=3​

Answers

Answered by samarthkrv
0

Answer:

var a = parseInt(prompt("Enter First Number: "));

var b = parseInt(prompt("Enter Second Number: "));

var c = parseInt(prompt("Enter Third Number: "));

var average = (a + b + c) / 3;

var sum = (a + b + c);

console.log("The average of three numbers: " + average);

console.log("The sum of three numbers is :" + sum);

Explanation:

Similar questions