-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
刘梓然-2018081311013 #35
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不错
level1/p01_runningLetter/奔跑的字母
Outdated
@@ -0,0 +1,35 @@ | |||
#include<stdio.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1)文件后缀.c要加上
2)文件名尽量避免用中文,C语言是跨平台的语言,有些系统不支持中文文件名
level1/p02_isPrime/isPrime
Outdated
printf("%d is a prime number.",n); | ||
else | ||
{ | ||
for(i=2;i<=k;i++) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这几行缩进有点乱了
level1/p02_isPrime/isPrime
Outdated
if(n%i==0) | ||
break; | ||
} | ||
if(i>k) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
缩进
level1/p03_Diophantus/Diophantus
Outdated
{ | ||
if(x/6.0+x/12.0+x/7.0+5.0+x/2.0+4.0 == x) | ||
{ | ||
printf("儿子死时丢番图年龄为:%d",int(x-4)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
缩进乱了
p01 p02 p04