Last active
January 30, 2021 01:15
-
-
Save Red3nzo/1a894264849afa8b7d2d8b7b36ab03cd to your computer and use it in GitHub Desktop.
Comp Sci
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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