Calculator program

                   Rajeev Ranjan Tiwari

दोस्तो आज Calculator के बारे में जानेंगे कि इसका यूज कहा करते हैं रोज मरा के जिंदगी में हम हर तरह के काम में 

Calculator ka यूज करते हैं जैसे study , market , office, company Home इत्यादि लेकिन इसे बनाते कैसे हैं

इसको जानते है दोस्तों इसे बानाने के लिए program  की  जरुरत पड़ती है  तो आज हम script se  बनाना सीखेंगे 

Script Function का उज करके हम बहुत अच्छा software, website, games , hacking server बना सकते हैं तो दिखते हैं कि यह कैसे काम करता है scrript



(1)

<html>

<head>

 <script language=JavaScript>

  function double()

  {

   var a;

   a = parseInt(document.f1.t1.value);

   document.write("Double=", a * 2);

  }

 </script>

</head>

<body>

 <form name=f1>

  Enter any number:<input type=text name=t1>

  <br>

  <input type="button" name="b1" value="Click for double" onclick=double()>

 </form>

</body>

</html>

 (2)

html>

<head>

<title>HTML Calculator</title>

</head>

<body bgcolor= "#000000" text= "gold">

<form name="calculator" >

<input type="button" value="1" onClick="document.calculator.ans.value ='1'">

<input type="button" value="2" onClick="document.calculator.ans.value ='2'">

<input type="button" value="3" onClick="document.calculator.ans.value ='3'">

<input type="button" value="4" onClick="document.calculator.ans.value ='4'">

<input type="button" value="5" onClick="document.calculator.ans.value ='5'">

<input type="button" value="6" onClick="document.calculator.ans.value ='6'">

<input type="button" value="7" onClick="document.calculator.ans.value ='7'">

<input type="button" value="8" onClick="document.calculator.ans.value ='8'">

<input type="button" value="9" onClick="document.calculator.ans.value ='9'">

<input type="button" value="-" onClick="document.calculator.ans.value ='-'">

<input type="button" value=" " onClick="document.calculator.ans.value =' '">

<input type="button" value="*" onClick="document.calculator.ans.value ='*'">

<input type="button" value="/" onClick="document.calculator.ans.value ='/'">

<input type="button" value="0" onClick="document.calculator.ans.value ='0'">

<input type="reset" value="Reset">

<input type="button" value="=" onClick="document.calculator.ans.value=eval(document.calculator.ans.value)">

<br>Solution is <input type="textfield" name="ans" value="">

</form>

</body>

</html>

(3) 

html>

<head>

 <title>Home</title>

</head>

<body bgcolor="yellow" background>

 <font color="blue">

  <center>Do you love me?</center>

 </font color>

 <center>

  <label><input type="checkbox" />Yes</label><br>

  <label><input type="checkbox" />No</label>

  </br>

 </center>

</body>

</html>


अंत मे अगर इस पोस्ट से आपको कुछ फायदा हुवा हो तो इसे दुसरो के साथ भी share करे ताकी दुसरो का भी फायदा हो. इस पोस्ट को पूरा पढ़ने के लिए आपका धन्यवाद और बहुत शुक्रिया.

Thanks friend posted by Rajeev Ranjan Tiwari

Comments

Popular posts from this blog

OT Technician

D Pharma

Tor Browser