Seeing that foreign batch scripts are written so wonderfully, while looking at our forum's understanding of batch processing just being simple play, it can't help but make some feelings.
Foreign - written batch processing not only has a deep study of algorithms, but is also proficient in the use of the three basic structures. It seems that the Chinese have not studied batch processing so deeply. The reason is that they haven't applied programming ideas to batch processing.
In fact, batch script has very good flexibility, and can even simulate and realize some functions of high - level languages. This is also based on the understanding of data structures in algorithm research. If everyone can do these two points well, I believe that the level of batch processing in the forum can be pushed to a higher level, making batch processing have a wider application range and attracting more people to communicate and learn~!~
I solved this problem using the array method, and of course there is more than one method:
@echo off
setlocal enabledelayedexpansion
set num=0
:go
set /a num+=1
set /p ii%num%=Input %num% number:
if %num% lss 10 goto go
for /l %%i in (%num%,-1,1) do echo !ii%%i!
pause
Recent Ratings for This Post
( 3 in total)
Click for details
| Rater | Score | Time |
| redtek |
+5 |
2006-12-30 01:03 |
| zh159 |
+5 |
2006-12-30 01:09 |
| lxmxn |
+6 |
2006-12-30 05:02 |
业精于勤而荒于嬉,形成于思而毁于随。