How to make calculator in Notpad [ hindi ]
Q.How to make calculator in Notpad
welcome to bramastratrick.com blog
youtube link=
Code-
<idoctype html>
<html lang="en-us">
<head>
<meta charset='utf-8'>
<title>
calculator
</title>
<style>
body{
width:300px;
height:450px;
background-color:white;
border-top:40px groove red ;
border-bottom:40px ridge #1DD622 ;
margin:0 auto;
border-radius:40px;
box-shadow:0px 0px 10px #323232;
}
input[type=text]{
width:95%;
height:30px;
margin:5px;
}
input[type=button]{
width:66px;
height:60px;
margin:2.5px;
}
</style>
</head>
<body>
<div>
<form name="rr">
<input type="text" name="result">
<br> <br>
<input type="button" value="1" onclick="document.rr.result.value+=1">
<input type="button" value="2" onclick="document.rr.result.value+=2">
<input type="button" value="3" onclick="document.rr.result.value+=3">
<input type="button" value="4" onclick="document.rr.result.value+=4">
<br> <br>
<input type="button" value="5" onclick="document.rr.result.value+=5">
<input type="button" value="6" onclick="document.rr.result.value+=6">
<input type="button" value="7" onclick="document.rr.result.value+=7">
<input type="button" value="8" onclick="document.rr.result.value+=8">
<br> <br>
<input type="button" value="9" onclick="document.rr.result.value+=9">
<input type="button" value="0" onclick="document.rr.result.value+=0">
<input type="button" value="." onclick="document.rr.result.value+='.'">
<input type="button" value="C" onclick="document.rr.result.value =''">
<br> <br>
<input type="button" value="+" onclick="document.rr.result.value+='+'">
<input type="button" value="-" onclick="document.rr.result.value+='-'">
<input type="button" value="*" onclick="document.rr.result.value+='*'">
<input type="button" value="/" onclick="document.rr.result.value+='/'">
<br> <br>
<input type="button" value="=" style="width:90px; height:45px; margin-left:12px; border-radius:4px; "onclick="document.rr.result.value=eval(document.rr.result.value)">
<input type="button" value="Rajnish" style="width:90px; height:45px; margin-left:12px; border-radius:4px; "onclick="document.rr.result.value+='www.bramastratrick.com'">
</div>
</body>
</html>
Comments
Post a Comment