| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
1000 A+B Problem我用Java写的,错了好几次了,不知道为什么。
import java.io.*;
import java.util.*;
public class Main
{
public static void main(String[] args[]) throws Exception
{
Scanner cin = new Scanner(System.in);
int number1 = cin.nextInt();
int number2 = cin.nextInt();
if(number1>=0 && number1<=10 && number2>=0 && number2<=10)
System.out.println(number1+number2);
}
}
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator