Advertisement
edutedu

varianta 9 pr 3

Dec 2nd, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. void f(int n, int k)
  5. {
  6. int ct=n;
  7. while(ct)
  8. {
  9. cout<<ct*k<<" ";
  10. ct--;
  11. }
  12.  
  13. }
  14. int main()
  15. {
  16. int n, k;
  17. cin>>n>>k;
  18. f(n, k);
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement