3和5
3和5
http://www.nowcoder.com/questionTerminal/0b247eb081fb4936a991e91af1e9165f
include<stdio.h>
int n,x,t;
int main(){
scanf("%d",&n);
for(int i = 1;i <= n;i ++){
t = i;
if(i%3 == 0)
while(t != 0){
if(t%10 == 5){
printf("%d\n",i);
break;
}
t /= 10;
}
}
}

