SHARE
TWEET

Untitled

a guest Feb 16th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. int f(int x, int y){
  3.     for (int i=1; i<=x; i++) {
  4.         for (int j=1; j <= y; j++) {
  5.             std::cout << "*";
  6.         }
  7.         std::cout << "\n";
  8.     }
  9.     return (x, y);
  10. }
  11. int main() {
  12.     int t, k;
  13.     std::cout << "chose the size\n";
  14.     std::cin >> t >> k;
  15.     f(t, k);
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top