fork download
  1. #include<stdio.h>
  2. #include<math.h>
  3. int main()
  4. {
  5. int i,n;
  6. scanf("%d",&n);
  7. i=5;
  8. do
  9. {
  10. printf("%d\n",i);
  11. i+=5;
  12. }
  13. while(i<=n);
  14. return 0;
  15. }
Success #stdin #stdout 0s 5520KB
stdin
10
stdout
5
10