Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int filas;
- int main(){
- cout
- << "Ingrese el numero de filas que quiere dibujar: ___\b\b\b";
- cin
- >> filas;
- for (int x = 0; x <= filas; x++){
- string fila;
- fila += "*";
- for (int i = 0; i <= filas; i++){
- fila += ".";
- cout
- << fila;
- }
- }
- _getche();
- return 0;
- }
- // Quiero que me dibuje esto:
- // ....*
- // ...**
- // ..***
- // .****
- // *****
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement