- 博客(6)
- 资源 (1)
- 收藏
- 关注
转载 杭电1000
Problem DescriptionCalculate A + B. InputEach line will contain two integers A and B. Process to end of file. OutputFor each case, output A + B in one line.
2015-04-26 15:03:40 186
原创 杭电1000
Problem DescriptionCalculate A + B. InputEach line will contain two integers A and B. Process to end of file. OutputFor each case, output A + B in one line.
2015-04-26 15:02:40 219
原创 杭电1000题
Problem DescriptionCalculate A + B. InputEach line will contain two integers A and B. Process to end of file. OutputFor each case, output A + B in one line.
2015-04-26 14:58:47 445
原创 冒泡排序法(由小到大顺序):
#includeint main(){int a[50],i,j,t,n;printf("\n \nPlease input number of data:");scanf("%d",&n);printf(" Please input %d number of data :\n\n\n",n);for(i=0;i
2015-04-15 21:22:00 584
原创 if语句使用的某一注意问题:
#includeint main(){int i,j;for(i=0;i{printf("i=%d:",i);for(j=0;j printf("j=%-4d",j);printf("\n");}return 0;}运行结果如下:------------------------------------------------
2015-04-11 11:06:59 260
原创 double及long float(lf)的用法注意点:
#includeint main(){ double a,b,c; //定义double型变量 scanf("%lf%lf%lf",&a,&b,&c); //格式声明用lf型,不用f型 printf("%lf",(a+b+c)/3); //格式声明lf型,f型都可以 ret
2015-04-11 09:33:43 1108
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人