![](/images/liferecord/arrow.gif)
![](/images/ico20080527/bat.png)
Last Modified: October 30 2020 14:33:15
File: root - programs - 80x86_batch - 2008 - 5 - math_example.bat
File Size: 0.42KB
@echo off
rem An Example Batch Program to Calculate 355/113.
rem OS: 2000, XP
rem Zhihua Lai, May 12, 2008
set /a a=355
set /a b=113
set /a c=100
set /a d=a/b
set o=%a%/%b%=%d%.
:work
set /a a=(a-d*b)*10
if "%a%"=="0" goto clean_up
set /a d=a/b
set /a c=c-1
if "%c%"=="0" goto clean_up
set o=%o%%d%
goto work
:clean_up
echo %o%
set o=
set a=
set b=
set c=
set d=
©2006~2024 SteakOverCooked - 0.01529 Seconds(s) - 1059.14 KB/s - 27 Online
Memory: 470.92 KB
18:54:01 up 13 days, 18:33, 2 users, load average: 0.98, 0.86, 0.73 - Server PHP Version: 7.4.33
How to Cook a Perfect Steak? | <meta name="robots" content="noindex, follow" />
![](/images/top.jpg)
18:54:01 up 13 days, 18:33, 2 users, load average: 0.98, 0.86, 0.73 - Server PHP Version: 7.4.33
Read & Write - Normal - Mini - Post - All Comments - Statistics
Be the first one to comment this page !