Fame and fortune are external things; what matters is to acquire knowledge.
三人行,必有吾师焉。 学然后知不足,教然后知困,然后能自强也。
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!
DigestI
View 36,417 Replies 139
Originally posted by namejm at 2006-11-17 16:27:
It might be that some moderator operated improperly and removed the essence, and now it is re-added as essence. However, there is a little regret that the original poster of this post was zouzhxi, but when returning to the post list interface to look...
@echo off
setlocal enabledelayedexpansion
set a=3333333333
set b=9999999999
set a1=%a%0000000000
set/a jg=1%a1:~-9%-%a:~-9%
set a1=%a1:~0,-9%
set/a jg1=%a1:~-9%-1-%a:~0,-9%
set jg=%a1:~0,-9%%jg1%%jg%
for /l %%a in (0,1,19) do for /l %%b in (0,2,8) do (set tm=!jg:~%%a,1!
if !tm!==%%b set/a gs+=1)
echo %a%*%b%=%jg%
echo 共有%gs%个偶数
pause
@echo off
set a=5
set b=7
set C=2
set/a ji=a*b*c
set/a a1=ji/a
set/a b1=ji/b
set/a c1=ji/c
echo The number of teeth of these three gears should be at least %a1%, %b1%, %c1% teeth!
pause