上一页 1 ··· 6 7 8 9 10 11 12 下一页

2022年9月8日

摘要: #include"stdio.h" main() { int x; scanf("%d",&x); if( x<0) x=-x; printf("%d",x); } 阅读全文

posted @ 2022-09-08 16:32 lachesism 阅读(217) 评论(0) 推荐(0)

摘要: #include <stdio.h> int main(void) { int x,y,z; printf("Enter x:\n"); scanf("%d",&x); if(x%10==0) { y=x; z=x; } else { y=x*2; z=x*3; } printf("y=%d\nz= 阅读全文

posted @ 2022-09-08 16:31 lachesism 阅读(209) 评论(0) 推荐(0)

摘要: #include <stdio.h> main( ) { int x; printf("Enter x:\n"); scanf("%d",&x); int r; r=x%10; int y; if(r==0) { y=x*3; } else { y= x; } printf("f(%d)=%d\n" 阅读全文

posted @ 2022-09-08 16:31 lachesism 阅读(151) 评论(0) 推荐(0)

摘要: #include <stdio.h> main( ) { int x=0; int r=0; scanf("%d",&x); r=x*x*x+x*x+x+1; printf("%d",r); } 阅读全文

posted @ 2022-09-08 16:30 lachesism 阅读(150) 评论(0) 推荐(0)

摘要: #include <stdio.h> int main() { int a; scanf("%d",&a); int g; g=a%10; int w; w=a/10000; int q; q=a/1000%10; int b; b=a/100%10; int s; s=a/10%10; int s 阅读全文

posted @ 2022-09-08 16:29 lachesism 阅读(38) 评论(0) 推荐(0)

摘要: #include <stdio.h> int main() { int a; scanf("%d",&a); int b; b=a/100; int bf; bf=b*b; int s; s=a/10%10; int sf; sf=s*s; int g; g=a%10; int gf; gf=g*g 阅读全文

posted @ 2022-09-08 16:28 lachesism 阅读(206) 评论(0) 推荐(0)

摘要: #include <stdio.h> int main() { int a; scanf("%d",&a); int s; s=a/10; int g; g=a%10; if(g==0) { printf("%d",s); } else { printf("%d%d",g,s); } } 阅读全文

posted @ 2022-09-08 16:26 lachesism 阅读(372) 评论(0) 推荐(0)

摘要: #include <stdio.h> int main() { int x,y,temp; //声明三个整型变量 printf("请输入x,y的值:"); //提示输入数据 scanf("%d,%d",&x,&y); //输入2个整数的值,中间用逗号分隔 printf("交换前:x = %d , y 阅读全文

posted @ 2022-09-08 16:25 lachesism 阅读(317) 评论(0) 推荐(0)

摘要: #include <stdio.h> main( ) { int a; scanf("%d",&a); int h; h=a/3600; int m; m=(a%3600)/60; int s; s=(a%3600)%60; printf("%02d:%02d:%02d\n",h,m,s); } 阅读全文

posted @ 2022-09-08 16:25 lachesism 阅读(775) 评论(0) 推荐(0)

摘要: #include <stdio.h> main( ) { int g,d,c; scanf("%d %d",&g,&d); c=g-d; printf("%d\n",c); } 阅读全文

posted @ 2022-09-08 16:24 lachesism 阅读(148) 评论(0) 推荐(0)

上一页 1 ··· 6 7 8 9 10 11 12 下一页