2017年9月24日
摘要: 1. 下载Git installer 链接地址:https://ncu.dl.sourceforge.net/project/git-osx-installer/git-2.14.1-intel-universal-mavericks.dmg 2. 安装git-xxxx-intel-universa 阅读全文
posted @ 2017-09-24 20:44 RLee 阅读(283) 评论(0) 推荐(0) 编辑
摘要: #include int main(){ int a; //a是所输入的数字 printf("输入数字: "); scanf("%d",&a); if(a%3==0&&a%5==0){ //可以同时被3和5整除的数字 pr... 阅读全文
posted @ 2017-09-24 19:42 RLee 阅读(561) 评论(0) 推荐(0) 编辑
摘要: #include int main() { int a,b,sum; printf("输入一个数字: "); scanf("%d",&a); //输入数字a sum = 0; for(b=1;b<=a;b++){ //设置b=1 使用for loop,用b相加,一直加到输入的数字a的数值 ... 阅读全文
posted @ 2017-09-24 19:34 RLee 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 最开始我想到使用array来输出乘法表,可是如果那样的话会多出很多行,一定程度上浪费了RAM And Storage 于是乎我决定使用for loop进行编辑,可是我在编译器上运行的时候出现了29个warning,但是输出的数值正是我想要的。 如果老师或者助教学长亦或者同学有时间的话,请帮忙指出我的 阅读全文
posted @ 2017-09-24 19:33 RLee 阅读(159) 评论(0) 推荐(0) 编辑
摘要: I will use another scanf to let user input the number they want to input to choose the max value. I will use another scanf to let user input the numbe 阅读全文
posted @ 2017-09-24 19:27 RLee 阅读(199) 评论(0) 推荐(0) 编辑
摘要: # include # define N 20 main(){ int a, b; int array[N]={1,2,3,4,7,45,45,23,4,1,0,432,42,55,24,64,46}; //array中输入需要排序的数字 int max = array[0]; for(a = 1; a max){ max = a... 阅读全文
posted @ 2017-09-24 19:24 RLee 阅读(313) 评论(0) 推荐(0) 编辑