Computer Science, asked by Kekwkememem567899, 6 months ago

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 comp49
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 anindyaadhikari13
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