import java.util.Scanner;
public class Test10097{
public static void main(String args[]){
int n,a,b,i,sum;
Scanner in=new Scanner(System.in );
n=in.nextInt(); //输入n
for(i=1; i<=n; i++){
/*------------*/
a=in.nextInt();
b=in.nextInt();
sum=a+b;
System.out.println("sum="+sum);
}
}
}此时,n,a,b 的值该怎样输入
|
|