Write down the BASIC programs for the following tasks 1.Accept 2 numbers find sum of the numbers. 2. Find area and perimeter of square and display them.
Answers
Answered by
0
Explanation:
1.
# This program adds two numbers
num1 = 3
num2 = 5
# Add two numbers
sum = num1 + num2
# Display the sum
print ( ' the sum of {0} and {1} is {2} '. format ( num1, num2, sum) )
OUTPUT
The sum of 3 and 5 is 8.
Similar questions