scanf two numbers
This commit is contained in:
		
							
								
								
									
										13
									
								
								c-basic/scanf_example_two_numbers.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								c-basic/scanf_example_two_numbers.c
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
			
		||||
#include <stdio.h>
 | 
			
		||||
 | 
			
		||||
int main()
 | 
			
		||||
{
 | 
			
		||||
  int a, b;
 | 
			
		||||
 | 
			
		||||
  printf("enter two numbers:");
 | 
			
		||||
  scanf("%d%d", &a, &b);
 | 
			
		||||
 | 
			
		||||
  printf("a = %d, b = %d\n", a, b);
 | 
			
		||||
 | 
			
		||||
  return 0;
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user