Scanf two numbers
This commit is contained in:
		@@ -1,5 +1,7 @@
 | 
			
		||||
2024-06-30  hwpplayer1  <hwpplayer1@debian>
 | 
			
		||||
 | 
			
		||||
	* c-basic/scanf_2.c: scanf two numbers
 | 
			
		||||
 | 
			
		||||
	* c-basic/scanf.c: Scanf example
 | 
			
		||||
 | 
			
		||||
	* c-basic/printf.c: printf example
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										13
									
								
								c-basic/scanf_2.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								c-basic/scanf_2.c
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
			
		||||
#include <stdio.h>
 | 
			
		||||
 | 
			
		||||
int main()
 | 
			
		||||
{
 | 
			
		||||
    int a;
 | 
			
		||||
    int b;
 | 
			
		||||
 | 
			
		||||
    printf("enter two numers a and b:");
 | 
			
		||||
    scanf("%d%d", &a, &b);
 | 
			
		||||
    printf("a = %d, b = %d\n", a, b);
 | 
			
		||||
 | 
			
		||||
    return 0;
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user