Close Menu
My SiteMy Site
  • Home
  • Reviews
  • Computers
  • How Tos
  • Travel & Lifestyle
  • Phone ROMs
  • Contact
    • Advertise
    • About Us
Facebook X (Twitter) Instagram
My SiteMy Site
  • Home
  • Reviews
  • Computers
  • How Tos
  • Travel & Lifestyle
  • Phone ROMs
  • Contact
    • Advertise
    • About Us
My SiteMy Site
Home»Programming»How to Program A Calculator With Notepad (Batch Tut)
Programming

How to Program A Calculator With Notepad (Batch Tut)

Oscar FrankBy Oscar Frank1 Min Read
Share
Facebook Twitter LinkedIn WhatsApp Pinterest Email

For those of my readers who are quite interested in programming stuff, here is a little Batch tutorial to help you program a simple calculator in the .bat format. It won’t take you more than 5 minutes and your first calculator that can perform all basic calculation functions would be live.

a simple batch calculator

How to Make a Simple Calculator in Notepad using .bat format

  • Launch your Notepad from your Windows OS PC.
  • Copy and paste this code below into it

    @echo off
    title Batch Calculator by (your name)
    color 0c
    :top
    echo ————————————–
    echo -Welcome to Batch Calculator by *(your name)!-
    echo ————————————–
    echo Enter your operand
    echo.
    set /p sum=
    set /a ans=%sum%
    echo.
    echo = %ans%
    echo ————————————————————–
    pause
    cls
    echo Previous Answer: %ans%
    goto top
    pause
    exit

  • Now press CTRL + S to save, in the file name put in Calc.bat
  • In the File type, select All Files then Click on Save.
  • Now Launch the Calc.bat by double clicking on it.

Your Calculator is live, you can make use of it to perform your basic calculation functions.

Batch Tutorials programming

Related Posts

Navigating Coding Difficulties; What To Do When You Hit A Snag

February 11, 2022

Common Mistakes Newbie Developers Make and Solutions

March 23, 2021

7 Best Laptops For Coders In 2025

February 28, 2020
View 2 Comments

2 Comments

  1. koolprince on February 16, 2013 7:39 pm

    i beg oscar drop more

    Reply
    • Oscar Frank on February 16, 2013 8:41 pm

      Yeah… I would, since you find it useful.

      Reply
Leave A Reply Cancel Reply

Recent Posts
  • 6 Sports Apps You Must Have On Your Phone
  • Valencia Travel Guide: All You Need to Know About This Spanish Gem
  • TikTok Faces Unexpected Ban in Senegal, Sparks Global Curiosity
  • The Apple GPT & Apple’s Chatbot Mysterious Debut
  • Triller Takes on TikTok: Filing for Public Listing
Get Exclusive Tech Insights!
My Site
Facebook X (Twitter) Instagram YouTube
© 2025 Oscarmini Co. Designed by illBytes.

Type above and press Enter to search. Press Esc to cancel.