Code:
Citar
@echo off
setlocal enabledelayedexpansion
:code
set /p "lineas=Ingresa un numero: "
if not defined lineas (goto:code)
set "string=*"
for /l %%_ in (1, 1, %lineas%) do (
echo !string!
set "string=!string!*"
)
set /p "="
exit /b 0
setlocal enabledelayedexpansion
:code
set /p "lineas=Ingresa un numero: "
if not defined lineas (goto:code)
set "string=*"
for /l %%_ in (1, 1, %lineas%) do (
echo !string!
set "string=!string!*"
)
set /p "="
exit /b 0
Necesito esto:
Citar
y tengo esto:
Citar
*
**
***
****
*****
******
**
***
****
*****
******