kindly solve this...... program of factorial

June 19, 2011 at 00:02:22
Specs: Windows 7
@echo off
echo.
set /P n=enter any no:
set /A "f=1"
for /L %%a in (1,1,%n%) do (
set /A "s=%%a"
set /A "f=%s% * %f%"
echo %f%
)

See More: kindly solve this...... program of factorial

Report •


#1
June 19, 2011 at 03:24:06
Solved??

@echo off
cls
setlocal enabledelayedexpansion

echo.
set /P n=enter any no:
set /A f=1

for /L %%a in (1,1,!n!) do (
    set /A s=%%a
    set /A f=!s!*!f!
    echo !f!
)


Please come back & tell us if your problem is resolved.


Report •
Related Solutions


Ask Question