Exp-7b
May 15, 2024
0
Q1 -
console.log(Date());
Q2 -
var a = prompt("Enter the value of a - ");
var b = prompt("Enter the value of b - ");
a = Number(a);
b = Number(b);
var sum = a + b;
console.log(sum);
Q3 -
var a = prompt("Enter a - ");
var b = prompt("Enter b - ");
var c = prompt("Enter c - ");
var max_num = Math.max(a,b,c);
console.log("Maximum number is - " + max_num);
Q4-
Odd or Even Checker
GUYS IF YOU HAVE ANY DOUBT. PLEASE LET ME KNOW