Advertisement
Guest User

Untitled

a guest
Mar 29th, 2015
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. int filas;
  2. int main(){
  3.  
  4. cout
  5. << "Ingrese el numero de filas que quiere dibujar: ___\b\b\b";
  6. cin
  7. >> filas;
  8. for (int x = 0; x <= filas; x++){
  9. string fila;
  10. fila += "*";
  11. for (int i = 0; i <= filas; i++){
  12. fila += ".";
  13. cout
  14. << fila;
  15. }
  16.  
  17.  
  18. }
  19. _getche();
  20. return 0;
  21. }
  22.  
  23.  
  24. // Quiero que me dibuje esto:
  25. // ....*
  26. // ...**
  27. // ..***
  28. // .****
  29. // *****
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement