fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // cout<<"Asha";
  6. int rows , cols;
  7. cin>>rows;
  8. cin>>cols;
  9. for(int i=0;i<rows;i++){
  10. for(int j=0;j<cols;j++){
  11. cout<<"*";
  12. }
  13. cout<<endl;
  14. }
  15. return 0;
  16. }
Success #stdin #stdout 0s 5316KB
stdin
6 6
stdout
******
******
******
******
******
******