codinasion-archive / codinasion-programme

An open source codebase for sharing programming solutions.
https://codinasion.vercel.app/programme
MIT License
62 stars 147 forks source link

Average of Numbers #743

Closed harshraj8843 closed 2 years ago

harshraj8843 commented 2 years ago

Title of programme

Write a JavaScript programme to calculate the average of numbers.

Additional information

Input:  2 3 4
Output: 3

Code of Conduct

enoch-baffoe commented 2 years ago

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;

harshraj8843 commented 2 years ago

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;

Hey @tera-code

Thanks for showing interest in this project 😃

Could you please raise a PR for this