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

2022年9月8日

摘要: #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 阅读(124) 评论(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 阅读(91) 评论(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 阅读(23) 评论(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 阅读(168) 评论(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 阅读(254) 评论(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 阅读(220) 评论(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 阅读(620) 评论(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 阅读(96) 评论(0) 推荐(0) 编辑

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

posted @ 2022-09-08 16:23 lachesism 阅读(97) 评论(0) 推荐(0) 编辑

2022年9月5日

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

posted @ 2022-09-05 09:59 lachesism 阅读(289) 评论(0) 推荐(0) 编辑

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