Untitled
unknown
plain_text
23 days ago
1.1 kB
17
Indexable
Never
# Use print() to print to the console number_1 = int(input()) number_2 = int(input()) a = number_1 b = number_2 #print(number_1,number_2) print('Arithmetic Operations:') print('Sum:',number_1+number_2) print('Difference:',number_1 - number_2) print('Product:',number_1*number_2) print('Quotient:',int(number_1/number_2)) print('Remainder:',int(number_1 % number_2)) print('Increment and Decrement Operations:') first_integer = number_1 + 1 print('Incremented first integer:',first_integer) second_integer = number_2 -1 print('Decremented second integer:',second_integer) print('Compound Assignment Operations:') #operation1 = number_1 =+ number_2 #print(number_1,number_2) number_1+=number_2 print('After += operation:',number_1) #print(number_1,number_2) number_1 -= second_integer print('After -= operation:',number_1 ) first_integer *= second_integer print('After *= operation:',first_integer) print('Bitwise Shift Operations:') print('First integer left shifted by 1:',first_integer <<1) print('Second integer right shifted by 1:',second_integer >> 1)
Leave a Comment