|
![]() | 作者: afan271314 [afan271314]
![]() |
登录 |
main() { int i,j; for(i=101;i<201;i++) {for(j=2;j<sqrt(i);j++) if(!(i%j==0)) printf("%d\n",i); } getch(); } |
地主 发表时间: 00-01-01 00:35 |
![]() | 回复: ljsh012 [ljsh012] ![]() |
登录 |
加入头文件 #include "math.h" |
B1层 发表时间: 04-11-09 22:33 |
![]() | 回复: afan271314 [afan271314] ![]() |
登录 |
都说了编译通过 |
B2层 发表时间: 04-11-10 08:23 |
![]() | 回复: 286 [unique] ![]() |
登录 |
#include <math.h> main() { int i,j; for(i=101;i<201;i++) { for(j=2;j<sqrt(i);j++) if(!(i%j==0)) printf("%d\n",i); } getch(); } 结果: 170 171 171 171 171 171 171 171 171 171 171 172 172 172 172 172 172 172 172 172 172 173 173 173 173 173 173 173 173 173 173 173 173 174 174 174 174 174 174 174 174 174 175 175 175 175 175 175 175 175 175 175 176 176 176 176 176 176 176 176 177 177 177 177 177 177 177 177 177 177 177 178 178 178 178 178 178 178 178 178 178 178 179 179 179 179 179 179 179 179 179 179 179 179 180 180 180 180 181 181 181 181 181 181 181 181 181 181 181 181 182 182 182 182 182 182 182 182 182 183 183 183 183 183 183 183 183 183 183 183 184 184 184 184 184 184 184 184 184 185 185 185 185 185 185 185 185 185 185 185 186 186 186 186 186 186 186 186 186 187 187 187 187 187 187 187 187 187 187 187 188 188 188 188 188 188 188 188 188 188 189 189 189 189 189 189 189 189 189 190 190 190 190 190 190 190 190 190 191 191 191 191 191 191 191 191 191 191 191 191 192 192 192 192 192 192 193 193 193 193 193 193 193 193 193 193 193 193 194 194 194 194 194 194 194 194 194 194 194 195 195 195 195 195 195 195 195 195 196 196 196 196 196 196 196 196 196 197 197 197 197 197 197 197 197 197 197 197 197 197 198 198 198 198 198 198 198 198 199 199 199 199 199 199 199 199 199 199 199 199 199 200 200 200 200 200 200 200 200 |
B3层 发表时间: 04-11-10 09:29 |
|
20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon
粤ICP备05087286号