REM PROGRAM TO DISPLAY AVERAGE OF TWO NUMBERS
CLS
INPUT “ENTER FIRST NUMBER”; A
INPUT “ENTER SECOND NUMBER”; B
INPUT “ENTER THIRD NUMBER”; C
AV = (A + B + C) / 3
PRINT “AVERAGE OF THREE NUMBERS”; AV
END
hope this helpz
Your question has been up too long, a moderator may have to delete it.
we will contact moderators to find your question and remove it, and hopefully, they will refund the points, which is not up to me.
<span>thank you for using brainly.</span>
You already wrote the answer. It is Additions
Answer:
Explanation:
In Javascript, you can accept an input value by using the prompt() function and saving the input into a variable. In the following lines of code, I have declared the three variables at the beginning and then prompted the user to enter a value for each and saved the values in the correct variables. In Javascript length is a keyword so I used len instead.
let base, height, len;
base = prompt("Enter Base value: ");
height = prompt("Enter Height value: ");
len = prompt("Enter Length value: ");