Popular Post

Posted by : Qifwhysoserious Wednesday 13 February 2013



Kali ini cara buat program kalkulator dengan menggunakan notepad sahaja . Program ini adalah program batch .

Mungkin agak tidak berguna kalkulator ini sebab dalam windows pun dah sedia ada calculator kan ? tapi sekali sekala guna kalkulator batch macam ni pun best jugak . Ini juga salah satu basic programming untuk membuat software.

1. Mula-mula copy code dibawah :






@echo off
title Batch Calculator by Qifwhysoserious.net
color a
:top
echo --------------------------------------
echo -Welcome to Batch Calculator by Qifwhysoserious.net !-
echo --------------------------------------
echo Masukkan Pengiraan
echo.
set /p sum=
set /a ans=%sum%
echo.
echo = %ans%
echo ---------------------------Qifwhysoserious.net -------------------------------
pause
cls
echo Jawapan Sebelum: %ans%
goto top
pause
exit






Paste kedalam notepad dan save :

File Name : kalkulator.bat
Save as type : All Files (*.*)

2. Sekarang anda cuma perlu buka file yang anda buat tadi dan siap . Kalkulator anda dah siap .


Sumber dari Reaperz

Leave a Reply

Subscribe to Posts | Subscribe to Comments

- Copyright © - Powered by Blogger - Designed by Johanes Djogan -