-
Notifications
You must be signed in to change notification settings - Fork 35
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
yutao #49
base: master
Are you sure you want to change the base?
yutao #49
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.
先看到这里吧
usleep(2000000); | ||
system("clear"); | ||
} | ||
for (location = location-1; location >=1; location--){ |
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.
闻到了重复的味道,请消除之
printf(" "); | ||
} | ||
putchar('A'); | ||
usleep(2000000); |
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.
定义常量
printf("\nThe primes are:\n%-7d",2); | ||
for (i=3; i<1000; i=i+2){ | ||
for (j=3; j<=(int)sqrt(i); j=j+2) | ||
if (i%j == 0) break; |
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.
加大括号
} | ||
} | ||
if (i > sqrt(num)) | ||
printf("\nIt's a prime.\n"); |
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.
大括号
tens = i/10 %10; | ||
hundreds = i/100; | ||
if (ones*ones*ones + tens*tens*tens + hundreds*hundreds*hundreds == i) | ||
printf("%7d\n",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 1~5, 1 (runningLetter) still have faults to be found.