Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- int f(int x, int y){
- for (int i=1; i<=x; i++) {
- for (int j=1; j <= y; j++) {
- std::cout << "*";
- }
- std::cout << "\n";
- }
- return (x, y);
- }
- int main() {
- int t, k;
- std::cout << "chose the size\n";
- std::cin >> t >> k;
- f(t, k);
- }
Add Comment
Please, Sign In to add comment