to input name of item, price of itemand number of item you want to buy then calculate the price you have to pay for them
Answers
Answered by
2
Answer:
name=imput ()
price=float(input ())
quantity=int(input())
total=qunatity*price
print(total)
Explanation:
It takes in name, price, quantity as input and gives total as output.
Answered by
4
Question:-
Write a program to input name of item, price and number of item you want to buy and then calculate the price you have to pay for them.
Program:
This is written in Python.
name=input("Enter your name: ")
p=int(input("Enter the price of item: "))
n=int(input("Enter the number of items: "))
p=p*n
print("Your name: ",name)
print("Total Price: ",p)
Similar questions
India Languages,
3 months ago
Math,
3 months ago
Science,
3 months ago
Computer Science,
6 months ago
English,
6 months ago
Physics,
11 months ago
Math,
11 months ago
Math,
11 months ago