fork download
  1. #include <stdio.h>
  2. int main(){
  3. int a;
  4. int b=0;
  5. for(a=1;a<=300;a++){
  6. if(a%3==0&&a%5==0){
  7. b++;
  8. printf( "%d\n",a);
  9. }
  10. // printf("%d",b);
  11. }
  12.  
  13.  
  14. }
Success #stdin #stdout 0.01s 5276KB
stdin
Standard input is empty
stdout
15
30
45
60
75
90
105
120
135
150
165
180
195
210
225
240
255
270
285
300