Write a program to input two numbers from a user. Calculate its sum and percentage.
Answers
Answered by
0
Answer:
this program is in Python language
Explanation:
num1=int(input("Enter first number:"))
num2=int(input("Enter second number:"))
sum=0
sum=num1+num2 #calculating sum of two numbers
#dividing num1 by num2 and multiply by 100 for percentage
per=(num1/num2)*100
print("Sum is ",sum)
print("Percentage is ",per)
Similar questions