Write the code for addition between two numbers in Javascript.
Answers
Answered by
0
Answer:
■ const num1 = parseInt(prompt('Enter the first number ')); const num2 = parseInt(prompt('Enter the second number ')); Then, the sum of the numbers is computed. const sum = num1 + num2; Finally, the sum is displayed ■.
Explanation:
please follow me and make me as brainlist.
Answered by
1
Answer:
printf("Enter two integers: "); scanf("%d %d", &number1, &number2); Then, these two numbers are added using the + operator, and the result is stored in the sum variable. Finally, the printf() function is used to display the sum of numbers. printf("%d + %d = %d", number1, number2, sum)..
Similar questions