C-study/04-1/3/3.c

17 lines
240 B
C
Raw Normal View History

2021-11-04 16:59:48 +00:00
#include<stdio.h>
int main(){
int num1=0,num2=0;
for(int i=100;i<=200;i++){
if(i%3==0)continue;
num1++;
}
for(int i=100;i<=200;i++){
if(i%3==0)continue;
num2++;
if(num2<=10||num2>=num1-9)printf("%d ",i);
}
return 0;
}