有趣
Dryad_
trust me
展开
-
我的处女作
#include<stdio.h> int main() { printf(“HI,My name is LiBe\n”); return 0; } 我的处女作,Hi ,我的名字叫做李博原创 2018-10-26 18:37:48 · 198 阅读 · 0 评论 -
1+1/3+1/5+n......的自创无脑版
#include <stdio.h> #include <stdlib.h> int main() { int t,n,b; float sum,h=1; scanf("%d",&n); for(t=1;t<=n-1;t++) { for(b=1,sum=1;b<=t;b++) { h=h+2; sum+=1/h; } h=1; } pri...原创 2019-04-05 12:20:14 · 1177 阅读 · 0 评论 -
输入四位数,每个位数上加上9,取余10,千位和十位互换,百位和个位互换
#include <stdio.h> #include <stdlib.h> int main() { int n,t; scanf("%d",&n); if((((n%1000)+9)%10)==0) { printf(“输入错误,请重新输入”); scanf("%d",&n); } printf("%d",(((n/1000)+9)%10)*10+((n...原创 2019-04-11 22:37:13 · 2730 阅读 · 1 评论