习题6(6.4)
来源:互联网 发布:pt老虎机破解软件 编辑:程序博客网 时间:2024/06/07 21:45
#include <stdio.h>#include <stdlib.h>int main(){ int n,x,y,i; x=1; y=1; printf("Input n:"); scanf("%d",&n); for(i=1;i<=n;i++) { x=i*i; printf("%d\n",x); } printf("\n"); for(i=1;i<=n;i++) { y=i*i*i; printf("%d\n",y); } return 0;}
知识点:for循环
心得体会:每一次的输出都要有相对的控制条件,以免发生错误
阅读全文
0 0
- 习题6(6.4)
- 习题6 6.4
- 习题6.4(立方)
- 习题6(3)
- 习题6(6.3)
- 习题6(6.5)
- 习题6(6.7)
- 习题6(6.10)
- 习题6(6.12)
- 习题6(6.13)
- 习题6(6.14)
- 习题6(6.15)
- 习题6(6.16)
- 习题6(6.17)
- 习题6(6.18)
- 机器学习习题(6)
- 习题6(水仙花数)
- 刷紫书第三章习题(习题3-1到习题3-6)
- gitlab之gitlab-ci自动部署
- 数据库基本操作
- Retrofit+RXJava_
- golang获取当前路径
- Leetcode 62. Unique Paths
- 习题6(6.4)
- 底部弹出框
- Codeforces 888G XOR MST(分治)
- 编程计算并输出1到n之间的所有数的平方和立方。
- 关于更新安装macos high sierra 失败,mac重启后无法找到启动项的解决办法
- 默认网关小结
- LeetCode 之 Divide Two Integers
- Find Pivot Index(LeetCode 724)
- [LeetCode] Course schedule II