Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

INPUT & OUTPUT

LEVEL 02
PROBLEM 01

In [1]: n = input()
print(int(n*4) + int(n*3) + int(n*2) + int(n))

2468

PROBLEM 02

In [2]: n = int(input())
print(n,n**2,n**3)

137 18769 2571353

PROBLEM 03

In [7]: h,b = map(float, input().split())


print(round(0.5*b*h, 3))

688.275

In [8]: h,b = input().split()


print(round(0.5*float(b)*float(h), 3))

688.275

PROBLEM 04

In [14]: f,i = map(float, input().split())


print("Your height is centimeters is: ", (f*12 + i)*2.54)

Your height is centimeters is: 165.1

PROBLEM 06

In [22]: t = int(input())
print('{}H:{}M:{}S'.format(t//3600, (t%3600)//60, ((t%3600)%60)))

2H:10M:45S

PROBLEM 07

In [24]: hno, pincode, employeeID, areacode = input().split()


print("EmployeeID: {} \nArea Code: {} \nHouse Number : {} \nPincode: {}".format(
employeeID, areacode,hno,pincode))
EmployeeID: 103245
Area Code: 14
House Number : 73
Pincode: 61300

PROBLEM 09

In [28]: bs = int(input())
da = int(input())
hra = int(input())

gs = bs + 0.01*(da + hra)*bs
print(gs)

3233904.5

PROBLEM 10

In [29]: a,b = map(float, input().split())


c,d = map(float, input().split())

print(a*d - b*c)

-2.0

You might also like