Skip to content

Latest commit

 

History

History
36 lines (17 loc) · 559 Bytes

File metadata and controls

36 lines (17 loc) · 559 Bytes

Ex1 Solution

print("welcome to my first program")

print("Please write your first number:")

a = int(input())

print("Please write your second number:")

b = int(input())

print("You entered this numbers respectively:", b, a)

Ex6 Solution

laptopPrice = int(input())

taxPercentage = int(input())

totalPrice = int((laptopPrice * taxPercentage / 100) + laptopPrice)

print(totalPrice)

Ex7 Solution

numberOfYears = int(input())

totalChildren = int(input())

totalSalary = int(400 + (20 * numberOfYears) + (30 * totalChildren))

print(totalSalary)