what about.... @echo off :hom title Calculator echo What's up, %USERNAME%?! Type a number! set/p one= cls echo Type symbol. (+,-,*,/) set/p two=%one%... echo The last number! set/p three=%one%%two%... set/a final=%one%%two%%three% cls echo the total is... %one%%two%%three%=%final% pause cls goto hom
funnywarnerbox300 3 months ago
you have almost the same last name as me
TheAnubis754 3 months ago
You just copied the code. You don't even know what each command is.
@echo off = Hide programming stuffs
echo = text
goto = go to another part
goto loop = go to a part called loop
:loop = this is the loop part
color = this is the colour the first letter is the background the second is the text
pause = stop and says press any key to continue. press any key and continue
set /p UDEFINE and set /a UDEFINE = calculator technique
title = this is the title
Zetsuke4 4 months ago
@mehran3472 is it available convert that .bat file into .exe file?
gensterize 6 months ago
@gensterize no
mehran3472 4 months ago
@gensterize yeah you can with bat toexe converter... look it up in youtube
rocketrroller55 3 months ago
it cant do fractions
yodoGamer 9 months ago
@rramprakash98 this is late but try putting in parenthesis if you need double signs
darkdemon1998 11 months ago
LOL INTRO FAIL!
littlekillab 1 year ago 2
i want to change the picture.
scottandpcwizkid 1 year ago
Ahh,
Division Didnt Work
MumboAndJumbo 1 year ago
wont work !!
cyrilsairek 1 year ago
sweet.I always wanted to make my own calculater!!!!!!!!!!!!!!!
tigerhead2000 1 year ago
SHIT I DIVIDED BY 0
lukesaysftw 1 year ago
thx mehran i realy needed it
TheAlistcx 1 year ago
cool, Thanks !
TuscaniManiac 1 year ago
3 divided by 2 equals one on this calculator?can you fix that us plz because i really need this
HelpSaveTheEarth2051 2 years ago
im on it
mehran3472 2 years ago
Hey Mehran3472 Can you plz tell me what is the function of the following coding...
:loop
echo.
echo
SET /p UDefine=
SET /a UDefine=%UDefine%
ECHO =
ECHO %UDefine%
ECHO.
goto loop
RedEyeBlackDemon 2 years ago
alright if u dont use this part........this will happen....
when u start the calculator and press any key it shows the functions
then you press enter again to start your math but it will close
mehran3472 2 years ago
try making the calculator without this part and youll find out if u dont understand
mehran3472 2 years ago
@RedEyeBlackDemon Dude... I think the answer you seek is this
- What youre looking for is HOW it PROCESSES it right ??
- :Loop [where in the end (goto loop) will go back to]
-Echo [The command that will show what you yourself edited]
- SET /P UDefine= [The problem THAT YOU will set up (/p) P problem set up]
- Set /a UDefine=%udefine% [the problem that will restate and solve from code to echo]
= Echo= [when it repeats the problem from the edition]
Echo %udefine% [The solution]
loop - [repeat]
smurfyownage 1 year ago
@RedEyeBlackDemon :loop basically repeats the process over and over again.
echo. skips a line
echo says what to write on the next line, like echo start game
That's all I know off of the top of my head.
Shia2255 3 months ago
Cool!
MegaPwner348 2 years ago