摘要: #include<stdio.h>#include<math.h>#include<string.h>int main(){ int x,len,i; float num; scanf("%d",&x); if(x==0)printf("%d",x); if(x>0){ for(i=1;;i++) 阅读全文
posted @ 2017-11-30 09:38 If-only- 阅读(390) 评论(0) 推荐(0)
摘要: #include<stdio.h>int fun(int m,int p[ ]);int main(){ int a[200],i,last,m; printf("Input numbe:") scanf("%d",&m); for(i=0;i<m;i++) { a[i]=i+1; } last=f 阅读全文
posted @ 2017-11-23 09:41 If-only- 阅读(272) 评论(0) 推荐(0)
摘要: int delnum(int p[],int n,int num){ int z,j,k,c=0; int b[N]; for(j=0,k=0;j<N;j++,k++) { if(p[j]!=num)b[k]=p[j]; else {k--;c++;} } for(j=0;j<N-c;j++) { 阅读全文
posted @ 2017-11-23 08:42 If-only- 阅读(176) 评论(0) 推荐(0)
摘要: #include<stdio.h>int main(){ int a[10],b[10]; int i,j,t,m,n,k; for(i=0;i<10;i++) { printf("Input NO%d score:",i+1); scanf("%d",&a[i]); } printf(" prim 阅读全文
posted @ 2017-11-09 09:18 If-only- 阅读(222) 评论(0) 推荐(0)
摘要: #include<stdio.h>int main(){int Littlebox=11,bigbox=24;float rate=55.0/0.5,weight,num1;int num,i,j,m,n,k,t,rest=11;printf("Input material weight:");sc 阅读全文
posted @ 2017-11-02 09:36 If-only- 阅读(205) 评论(0) 推荐(0)
摘要: int a[100],num,i=0,n; while(1) { scanf("%d",&num); char x=getchar(); a[i++]=num; if(x=='\n')break; } n=i; //n为数组长度// 阅读全文
posted @ 2017-10-16 13:57 If-only- 阅读(3327) 评论(0) 推荐(0)