#include<stdio.h> int main(){ int a,b; int c; scanf("%d %d",a,b); if(a>b) { c=a; a=b; b=c; } while(a<b+1) { if(a%3==0) printf("%d ",a); a++; } return 0;}
scanf 里a,b前面没加首地址符