0% found this document useful (0 votes)
6 views2 pages

FC Drawio

The document outlines a simple calculator program that prompts the user to enter two numbers and choose an arithmetic operation (addition, subtraction, multiplication, or division). It includes a check for division by zero, displaying an error message if the second number is zero. The program concludes by displaying the result of the chosen operation.

Uploaded by

Emmalyn Baltar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

FC Drawio

The document outlines a simple calculator program that prompts the user to enter two numbers and choose an arithmetic operation (addition, subtraction, multiplication, or division). It includes a check for division by zero, displaying an error message if the second number is zero. The program concludes by displaying the result of the chosen operation.

Uploaded by

Emmalyn Baltar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Start

Enter first number


" num1"

Enter second number


" num2"

Choose operation ( +, -, *, / )

Operation?
/

+ - *

Result = num1 + num2 Result = num1 - num2 Result = num1 * num2 num2 = 0?

No Yes

Result = num1 / num2

Error: Division by

Display result

End
by zero

You might also like