*These two questions are of PYTHON programming app please help me out. PLEASE TELL THE CODES*
1. Prompt the user for two numbers, and then print out a sentence stating the sum, product and subtraction.
2. Let us enter marks of Math, Science, SSc, English and French(each out of 100), for a student and display the total and percentage
Answers
Answered by
0
Explanation:
for question 1
a=int(input("first no. = "))
b=int(input("second no. = "))
c=a+b
print(c)
for question 2
just use the first code and edit the values and function
Answered by
0
Answer:
Hey! The is in python...
Question 1 answer:
x = int(input("Enter a number: "))
y = int(input("Enter another number: "))
print("Sum = ", a+b)
print("Product = ", a*b)
print("Difference = ", a-b)
Question 2 answer:
sum = 0
n = int(input("How many subjects? "))
total = n*100
for i in range(n):
x = float(input("Enter marks: "))
sum+=x
print("Percentage of total marks = ", sum / total * 100)
# HOPE THIS HELPS YOU!!
Similar questions