| ||||||||||
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 |
scanf("%d%d"),中间不要加逗号In Reply To:请问为什么不对呢? Posted by:90201449 at 2003-12-30 20:21:00 > #include<stdio.h> > void main() > { > int a,b,c; > > scanf("%d,%d",&a,&b); > if(a>10||a<0||b>10||b<0) > printf("error\n"); > else > {c=a+b; > printf("%d\n",c); > } > } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator