• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HOW TO MAKE A CALCULATOR USING BATCH FILE
#1
HOW TO MAKE A CALCULATOR USING BATCH FILE

----------------------------code------------------------------
echo off
cls
echo.
echo This is multiplication calculation
set/p "user=FirstNo=>"
set/p "pass=SecondNo=>"
set /a a=%user%*%pass%
echo so the answers is = %a%
pause >nul
---------------------------end code---------------------------

paste the copied code in your notepad and save as "calculator.bat" or any other name with bat extension
you can change * with +,- and / to perform various operations.
  Reply
#2
Would be more efficient to ONLY have the answer, and to also use command line args with %0 and %1. I *think* You could make it take 3 args, and make it do all 4 operations with a one-line command.
[Image: nomnomnom.jpg]
;7$=v?%v%#5>v7v8994
The decrypt code is V, I could not make it any simpler!
  Reply
#3

ermmm Clones! My calculator is broken. :unhappy

[Image: calc.png]
  Reply
#4
Don't be such a smart arse.
[Image: nomnomnom.jpg]
;7$=v?%v%#5>v7v8994
The decrypt code is V, I could not make it any simpler!
  Reply


Forum Jump: