1 Let's do this lil table with batch script 26th May 2009, 4:37 pm
AcronomeArk
MITR New User
Hey Guys,
Can you display the following table with ONLY SINGLE COMMAND LINE WITHOUT USING AMPERSANDS?
0 0
1 0
1 1
2 0
2 1
2 2
3 0
3 1
3 2
3 3
4 0
4 1
4 2
4 3
4 4
Have fun!!:PThere is answer at the bottom of this message.
Don't peek the answer first!!!!Try yourself.
Ans:
Can you display the following table with ONLY SINGLE COMMAND LINE WITHOUT USING AMPERSANDS?
0 0
1 0
1 1
2 0
2 1
2 2
3 0
3 1
3 2
3 3
4 0
4 1
4 2
4 3
4 4
Have fun!!:PThere is answer at the bottom of this message.
Don't peek the answer first!!!!Try yourself.
Ans:
- Spoiler:
- @FOR %%A IN ("0 0" "1 0" "1 1" "2 0" "2 1" "2 2" "3 0" "3 1" "3 2" "3 3" "4 0" "4 1" "4 2" "4 3" "4 4") DO @ECHO.%%~A
[You must be registered and logged in to see this image.]
Last edited by bluerays on 27th May 2009, 5:21 pm; edited 3 times in total (Reason for editing : အေၿဖကို Spoiler နဲ႔ အုပ္ထားပါတယ္။)