Skip to content

Instantly share code, notes, and snippets.

@Red3nzo
Last active January 30, 2021 01:15
Show Gist options
  • Save Red3nzo/1a894264849afa8b7d2d8b7b36ab03cd to your computer and use it in GitHub Desktop.
Save Red3nzo/1a894264849afa8b7d2d8b7b36ab03cd to your computer and use it in GitHub Desktop.
Comp Sci
user_num = int(input('Enter interger:\n'))
sqaured = pow(user_num, 2)
cubed = pow(user_num, 3)
print('You entered: {}'.format(user_num))
print('{} sqaured is {}'.format(user_num, sqaured))
print('And {} cubed is {} !!'.format(user_num, cubed))
user_num2 = int(input('Enter another number:\n'))
sumed = user_num + user_num2
product = user_num * user_num2
print('{} + {} is {}'.format(user_num, user_num2, sumed))
print('{} * {} is {}'.format(user_num, user_num2, product))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment