Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void f(int n, int k)
- {
- int ct=n;
- while(ct)
- {
- cout<<ct*k<<" ";
- ct--;
- }
- }
- int main()
- {
- int n, k;
- cin>>n>>k;
- f(n, k);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement