Advertisement
Dechatorn

Ex 9

Oct 17th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int n;
  5. scanf("%d",&n);
  6. for(int i=3;i<=n;i+=5)
  7. {
  8. if(i==n)
  9. {
  10. printf("%d",i);
  11. }
  12. else
  13. {
  14. printf("%d, ",i);
  15. }
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement