1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// C++ 版本 
#include <iostream>                 
#include <cstdlib>                  
                                    
int main(){                         
   using namespace std;             
   int a, b;    
                
   while( cin ){
      cin >> a >> b;                
      cout << "a : " << a << endl   
           << "b : " << b << endl;  
   }                                
   system("pause");                 
}                                   
 
/* C 語言版本 
#include <stdio.h> 
#include <stdlib.h> 

int main(){
   int a, b;       
   
   while( !feof(stdin) ){ 
      scanf( "%d%d", &a, &b ); 
      printf( "a : %d\nb : %d\n", a, b ); 
   }
   system("pause"); 
   return EXIT_SUCCESS; 
} 
*/