fork download
  1.  
  2. #include<stdio.h>
  3. int main()
  4. {
  5. int i,start,stop;
  6. printf("Enter the two numbers");
  7. scanf("%d %d",&start, &stop);
  8. printf("Numbers divisible by 3 are:\t");
  9. for(i=start;i<=stop;i++)
  10. {
  11. if(i%3==0)
  12. printf("%d\t",i);
  13. }
  14. }
Success #stdin #stdout 0s 5532KB
stdin
 
stdout
Enter the two numbersNumbers divisible by 3 are: