Untitled

mail@pastecode.io avatar
unknown
plain_text
25 days ago
454 B
4
Indexable
Never
user_num = int(input('Enter integer:\n'))

print('You entered:', user_num)

squared = user_num * user_num
cubed = user_num * user_num * user_num
print(user_num, 'squared is', squared)
print('And', user_num, 'cubed is', cubed)

user_num2 = int(input('Enter another integer:\n'))

sum_result = user_num + user_num2
product_result = user_num * user_num2
print(user_num, '+', user_num2, 'is', sum_result)
print(user_num, '*', user_num2, 'is', product_result)
Leave a Comment