Tasks

Estimated reading: 1 minute 110 views

Task-1

				
					// Prompt user for a number
let number = parseFloat(prompt("Enter a number:"));
				
			
				
					Enter the first number: 10
Enter the second number: 3

Addition: 10 + 3 = 13
Subtraction: 10 - 3 = 7
Multiplication: 10 * 3 = 30
Division: 10 / 3 = 3.3333333333333335
Modulo: 10 % 3 = 1
				
			
Share this Doc

Tasks

Or copy link