Hack Forums
[Shell] Just an simple batch calculator :) - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Shell] Just an simple batch calculator :) (/showthread.php?tid=5632673)



Just an simple batch calculator :) - V for vandetta - May 26, 2017

Well i think you understand by now that this is an calculator
Code
@echo off
set copywrigth= [V]
title Batch Calculator by %copywrigth%
color 1f
:top
echo --------------------------------------------------------------
echo Welcome to Batch Calculator by %copywrigth%
echo --------------------------------------------------------------
echo.
set /p sum=
set /a ans=%sum%
echo.
echo = %ans%
echo --------------------------------------------------------------
pause
cls
echo Previous Answer: %ans%
goto top
pause
exit
There you go 👍


* - spooky hacker - May 26, 2017

this is batch not bash luul
NICE ! i will do my homework on this.. XD


* - V for vandetta - May 26, 2017

(May 26, 2017 08:39 PM)spooky hacker Wrote:  this is batch not bash luul
NICE ! i will do my homework on this.. XD

Oh lol i'm sorry i've been learning bash a phyton lately so i mixed up bash and batch XD 😝