Advertisement
lukhavi

Rectangulos

Nov 18th, 2018
484
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. #define NUMERO_FILAS 10
  4. #define NUMERO_COLUMNAS 2
  5.  
  6. int main(void){
  7.    
  8.     int fil = NUMERO_FILAS;
  9.     int col = 0;
  10.    
  11.         while(fil>0){
  12.             while(col++<NUMERO_COLUMNAS )
  13.                 printf("#");
  14.             col = 0;
  15.             fil--;
  16.             printf("\n");
  17.         }
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement