0% found this document useful (0 votes)
16 views1 page

Numberofpeople Int (Input (Enter Numb

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views1 page

Numberofpeople Int (Input (Enter Numb

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

numberofpeople=int(input("enter number of people"))

costperperson=int(input("enter cost per person"))


if numberofpeople >10:
costperperson=costperperson*0.9
Totalcost=numberofpeople*costperperson
print("total cost is ",Totalcost)

PSUEDOCODE 2
print("Enter a number between 1 and 10")
num=int(input())
if num >= 1 and num <= 10:
print("That is correct")
else : print("That is incorrect")

You might also like