Skip to main content

Posts

Showing posts with the label Notepad

How to make calculator using HTML in notepad

CODE:-  <html> <head> <script> //function that display value function dis(val) { document.getElementById("result").value+=val } //function that evaluates the digit and return result function solve() { let x = document.getElementById("result").value let y = eval(x) document.getElementById("result").value = y } //function that clear the display function clr() { document.getElementById("result").value = "" } </script> <!-- for styling --> <style> .title{ margin-bottom: 10px; text-align:center; width: 210px; color:green; border: solid black 2px; } input[type="button"] { background-color:green; color: black; border: solid black 2px; width:100% } input[type="text"] { background-color:white; border: solid black 2px; width:100% } </style> </head> ...

Matrix Rain using notepad

  CODE:- @echo off color 02 :start echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% goto start SAVE AS- matix rain.bat OUTPUT:-

Code Rain with use Notepad

Step 1 : Open your Notepad/Notepad ++ Step 2 : Type this code in Notepad Code: @echo off title code rain mode 1000 color 0a goto ti cls :ti echo (type in what ever u like) pause cls goto di :di echo %random%%random%%random%%random% %random%%random%%random%%random% %random%%random%%random%%random% %random%%random%%random%%random% %random%%random%%random%%random% %random%%random%%random%%random% %random%%random%%random%%random% %random%%random%%random%%random% %random%%random%%random%%random% %random%%random%%random%%random% %random%%random%%random%%random% %random%%random%%random%%random% %random%%random%%random%%random% %random%%random%%random%%random% Save as:  code rain.bat

How to make snake game in Notepad

  Step 1: Open your Notepad/Notepad ++ Step 2: Type this code in Notepad Code: @echo off if "%~1" == "startGame" goto :game if "%~1" == "startController" goto :controller ::------------------------------------------------------------ :: verify existence of CHOICE command :: set up a macro appropriately depending on available version set "choice=" 2>nul >nul choice /c:yn /t 0 /d y if errorlevel 1 if not errorlevel 2 set "choice=choice /cs" if not defined choice ( 2>nul >nul choice /c:yn /t:y,1 if errorlevel 1 if not errorlevel 2 set "choice=choice /s" ) if not defined choice ( echo ERROR: This game requires the CHOICE command, but it is missing. echo Game aborted. :( echo( echo A 16 bit port of CHOICE.EXE from FREEDOS is available at echo http://winsupport.org/utilities/freedos-choice.html echo( echo( exit /b ) ::--------------------------------------------------------------------...

How to make clock in Notepad

Step 1: Open Your Notepad/Notepad ++ Step 2: Then type this code below Code:  @echo off Title Clock @mode con cols=35 lines=7 color 0f :main cls echo. echo Time: %time% echo. echo Date: %date% echo. ping -n 2 0.0.0.0 >nul goto main Save as: clock.bat

Make a calculator with use Notepad

step 1: Open your Notepad step 2: Then type below coding Coding: @echo off title My Calculator v 2.0 color E :top echo -------------------------------------------- echo Welcome to The My Calculator v 2.0 echo type your math problems below echo -------------------------------------------- set /p equation= set /a ans= %equation% cls echo %ans% pause > Nul Save as: Calculator.bat