Computer Science, asked by paulsouranki, 3 months ago

write an algorithm to add 20 and 10 and display the sum​

Answers

Answered by Lalitha162
0

Here's an algorithm in the programming language Python to add 20 and 10 and display the sum:

# Step 1: Declare two variables to store the values 20 and 10

num1 = 20

num2 = 10

# Step 2: Calculate the sum of the two numbers

sum = num1 + num2

# Step 3: Display the sum

print("The sum of", num1, "and", num2, "is:", sum)

Similar questions