Advertisement
apl-mhd

Row Column shape

Sep 4th, 2016
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. /*
  5.    ****
  6.    ****
  7.    ****
  8.  
  9. */
  10.  
  11. int main()
  12. {
  13.  
  14.     int row, col, i,j, number = 0;
  15.     scanf("%d%d",&row,&col);
  16.  
  17.     for(i = 1; i<=row; i++){
  18.  
  19.         for( j = 1; j <= col; j++  ){
  20.  
  21.             printf("*");
  22.  
  23.         }
  24.  
  25.         printf("\n");
  26.  
  27.     }
  28.  
  29.     return 0;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement