Fortune Telling Collection - Comprehensive fortune-telling - How to do addition, subtraction, multiplication and division under DOS
How to do addition, subtraction, multiplication and division under DOS
For easy understanding, like this—
@set /a a=3
@set /a b=2
@set /a c= 1
@set /a d=%a%*%b%-%c%
Echo %d%
Pause & gt null
The direct operation is like this—
@set /a a=3*2- 1
Echo %a%
Pause & gt null
Anyway, I think it is self-evident that the previous @ hidden command is the final result. If you remove the @, you can see the details of each step. In addition, do you want to pause-if it is in the DOS interface?
- Related articles
- Where there is a temple in Linqu, Guanyin is the best, and so is Buddha.
- The fortune teller said that I am a big forest, I have five elements, and I am a yellow snake. May I ask?
- 20 12 July 17 Born at 6: 30 in the morning, surnamed Dang. How should I name girls?
- Anhui fortune teller
- 20 16 asking children to tell their fortune
- What's the name of the blind date fortune teller?
- Which dynasty did the Riverside Map on Qingming Festival reflect the prosperity of the city?
- What are the village committees under Baofeng Street in Shimen County, Changde City, Hunan Province?
- Female students' fortune telling in the twelfth lunar month 2023 constellation.
- Fortune teller guesses surname _ Fortune teller guesses surname?