Week1

mail@pastecode.io avatar
unknown
python
a year ago
541 B
3
Indexable
Never
Task 1
print("Python")

Task 3
a = 2**179
print(a)

Task 5
k = int(input())
print("A"*k)

Task 7
friends = int(input())
apples = int(input())
a = apples // friends
b = apples % friends
c = apples / friends
print(a)
print(b)
print(c)

Task 9
a = int(input())
b = int(input())
c = int(input())
d = int(input())
s1 = d * (c + a)
s2 = b * a
print(s1 + s2)

Task 11
years = int(input())
money = 100000
interest = 0.1 / 12
for i in range(years * 12):
    money = money * (1 + interest)
print(round(money))