Program to perform all arithmetic operations on two numbers Dry Run in PYTHON

Program to perform all arithmetic operations on two numbers is an interactive PYTHON dry run visualizer from the Io programs section. Study the source code, then use the execution controls to follow each step, variable update, highlighted line, and console output.

This page provides a browser-based dry run with source-code highlighting, auto-scroll, voice narration controls, and execution output for learning the program step by step.

Program to perform all arithmetic operations on two numbers Program Code

# Complete arithmetic operations program
a = float(input("Enter first number: "))
b = float(input("Enter second number: "))

print(f"\n{a} + {b} = {a + b}")
print(f"{a} - {b} = {a - b}")
print(f"{a} * {b} = {a * b}")
print(f"{a} / {b} = {a / b}")
print(f"{a} // {b} = {a // b}")
print(f"{a} % {b} = {a % b}")
print(f"{a} ** {b} = {a ** b}")

View the complete Io programs page.

Program Console Program to perform all arithmetic operations on two numbers Topic: PYTHON Vignaankosh.com
Execution Panel
Step 0/0
Console is empty.