/* Written by: Tai Ngo
Date: 10/03/2012
Description: This program allows the users to print numbers
in the desired orders.
Problem B
*/
#include <stdio.h>
int main (void)
{ //Global declaration
int num1;
int num2;
int num3;
int num4;
int num5;
int num6;
int num7;
int num8;
int num9;
int num10;
//Statements
printf("Enter 10 integers, separated by spaces:");
scanf("%5d %5d %5d %5d %5d %5d %5d %5d %5d %5d ", &num1, &num2, &num3, &num4, &num5, &num6, &num7, &num8, &num9, &num10 );
printf("%5d %5d\n", num1, num10);
printf("%5d %5d\n", num2, num9);
printf("%5d %5d\n", num3, num8);
printf("%5d %5d\n", num4, num7);
printf("%5d %5d\n", num5, num6);
return 0;
} //main
整数を入力した後に出力を表示するには、文字を入力する必要があるのはなぜですか?