Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

为什么写这个printf("\nPlease input your two numbers.a=? b=?(0<=a,b<=10)\n");

Posted by sothink at 2005-02-25 20:01:09 on Problem 1000
In Reply To:这样的题都可以错!这错在哪里了,我都运行成功了呀! Posted by:c0500430040 at 2005-02-25 19:40:50
> main()
> {int a,b;
> printf("\nPlease input your two numbers.a=? b=?(0<=a,b<=10)\n");
> scanf("%d %d",&a,&b);
> if(a>=0||a<=10||b>=0||b<=10)
> {a=a+b;
> printf("\na+b=%d\n",a);
> }
> else printf("error");
> }
> 

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator