Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
21
Task/Arithmetic-Integer/Python/arithmetic-integer-4.py
Normal file
21
Task/Arithmetic-Integer/Python/arithmetic-integer-4.py
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
input1 = 18
|
||||
# input1 = input()
|
||||
input2 = 7
|
||||
# input2 = input()
|
||||
|
||||
qq = input1 + input2
|
||||
print("Sum: " + str(qq))
|
||||
ww = input1 - input2
|
||||
print("Difference: " + str(ww))
|
||||
ee = input1 * input2
|
||||
print("Product: " + str(ee))
|
||||
rr = input1 / input2
|
||||
print("Integer quotient: " + str(int(rr)))
|
||||
print("Float quotient: " + str(float(rr)))
|
||||
tt = float(input1 / input2)
|
||||
uu = (int(tt) - float(tt))*-10
|
||||
#print(tt)
|
||||
print("Whole Remainder: " + str(int(uu)))
|
||||
print("Actual Remainder: " + str(uu))
|
||||
yy = input1 ** input2
|
||||
print("Exponentiation: " + str(yy))
|
||||
Loading…
Add table
Add a link
Reference in a new issue