HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to make a Batch file Calculator!

9,263 views November 1, 2013 9:34

Watch on YouTube
Channellevi frunk

Description from the creator

Fixed the delay problem! :)

notepad-plus-plus.org
(notepad)

@echo off
@title:Calculator
setlocal EnableDelayedExpansion
color 0a
goto play

:play
cls
echo Can i have your name?
set /p name=
cls
echo Hello, !name! Do you want to use the
echo Calculator
echo 1.Yes
echo 2.No
set /p input=
if !input! equ 1 goto calc
if !input! equ 2 exit

:calc
cls
echo Add = +
echo Subtract = -
echo Divide = /
echo Multiply = *
echo Put your question here:
set /p equ=
set /a equ=!equ!
cls
echo Answer:!equ!
pause
goto calc

About this tutorial

levi frunk published this 9:34 video tutorial on November 1, 2013. It has been watched 9,263 times on YouTube.

Channel
levi frunk
Duration
9:34
Published
November 1, 2013
Views
9,263
Likes
84

Share

This tutorial in other languages