Computer Science, asked by lakraabhinav25, 5 hours ago

Write an algorithm to calculate and display the multiplication and division of two numbers 20

and 5​

Answers

Answered by ladmanas
3

Answer:

Read the below answer.

Explanation:

20*5

(* means multiply in computer language)

20/5

(/ means divide in computer language)

Answered by MotiSani
2

The algorithm to calculate and display the multiplication and division of two numbers, 20 and 5, is as follows:

Step 1: Start

Step 2: Declare two variables, num1 and num2, and assign the values 20 and 5 to them respectively.

Step 3: Declare two more variables, mul and div, and assign them the initial value of 0.

Step 4: Multiply num1 and num2, and store the result in the multiply variable, i.e., mul = num1 * num2

Step 5: Divide num1 by num2, and store the result in the variable div, i.e., div = num1/num2.

Step 6: Display the result of multiplication using the variable mul

Step 7: Display the result of division using the variable div

Step 8: End

  • An algorithm is a step-by-step procedure or set of rules that a computer program follows to solve a specific problem or perform a specific task. It consists of a finite sequence of instructions.
  • The algorithm can be implemented in any programming language of your choice, using appropriate syntax and functions to perform the necessary operations.

#SPJ3

Similar questions