3.2k views
4 votes
Write an algorithm and flowchart that accepts two integers from the user and calculatethe product of the two integers.

2 Answers

5 votes
Algorithm-

Step 1 - Start

Step 2 - Ask the user to input two integer eg: p and q

Step 3 - Calculate product of the integers (the integers are p and q)

Step 4 - Print the product

Step 5 - End

6 votes

Answer:

Algorithm

Step 1: Start

Step 2: Ask user to input two integers x and y

Step 3: Calculate the product of the two integers (product = x*y)

Step 4: Print the product

Step 5: End

Flowchart

[Start]

→ [Prompt User for x and y]

→ [Calculate product = x*y]

→ [Print product]

→ [End]

User Powkachu
by
8.3k points