- 博客(2)
- 收藏
- 关注
原创 函数空心金字塔
#include <stdio.h> void hollowPyramid ( int n ); int main() { int n; scanf("%d", &n); hollowPyramid ( n ); return 0; } void hollowPyramid( int n ) { int a,b,i,c=0; b=n; for(i=1;i<=n;i++) { a=1; ...
2021-12-26 18:01:16 470
原创 国王的金币for循环
#include"stdio.h" int main() { int n,s=0,c=0,a=1;; scanf("%d",&n); for(int i=1;i<=n;i++) { for(int j=1;j<=i;j++) { s+=a; c++; if(c==n) break; ...
2021-12-25 10:48:46 816
空空如也
#python +qt5界面运行
2023-06-14
TA创建的收藏夹 TA关注的收藏夹
TA关注的人