Advertisement
Guest User

Untitled

a guest
Jun 12th, 2021
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4.  
  5. void main()
  6. {
  7. int k, n;
  8.  
  9. cout << "Unesite k: ";
  10. cin >> k;
  11. cout << "Unesite n: ";
  12. cin >> n;
  13.  
  14. for (int i = k; i < n; i++)
  15. {
  16. if (i%5 != 0)
  17. {
  18. cout << i << endl;
  19. }
  20.  
  21. }
  22.  
  23. system("pause");
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement