fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3. #define ll long long
  4. int main ()
  5. {
  6. ll m,n;
  7. ll t;
  8. scanf ("%lld",&t);
  9. while (t ==0) {
  10. scanf ("%lld %lld", &m , &n);
  11. for (int j=1 ; j <=m; j++) {
  12. for (int i=1 ; i <=n; i++) {
  13. printf ("*");
  14. }
  15. printf ("\n");
  16. }
  17. t = t-- ;
  18. }
  19.  
  20.  
  21. }
  22.  
  23.  
Success #stdin #stdout 0s 5328KB
stdin
3
2 3
3 2 
4 4
stdout
Standard output is empty