Skip to main content

how to make a calculator use html

 

<!DOCTYPE html> <html lang="en"> <head> <title>Calculator</title> <link rel="stylesheet" href="style.css"> </head> <body> <div id="calc"> <div id="content"> <form> <div id="output"> <input type="text" id='res'> </div> <div class="btn"> <input type="button" value='C' onclick="Clear()" id="clear"> <input type="button" value='' onclick="Back()" id="backspace"> <input type="button" value='%' onclick="Solve('%')"> <input type="button" value='/' onclick="Solve('/')"> <br> <input type="button" value='7' onclick="Solve('7')"> <input type="button" value='8' onclick="Solve('8')"> <input type="button" value='9' onclick="Solve('9')"> <input type="button" value='x' onclick="Solve('*')"> <br> <input type="button" value='4' onclick="Solve('4')"> <input type="button" value='5' onclick="Solve('5')"> <input type="button" value='6' onclick="Solve('6')"> <input type="button" value='-' onclick="Solve('-')"> <br> <input type="button" value='1' onclick="Solve('1')"> <input type="button" value='2' onclick="Solve('2')"> <input type="button" value='3' onclick="Solve('3')"> <input type="button" value='+' onclick="Solve('+')"> <br> <input type="button" value='00' onclick="Solve('00')"> <input type="button" value='0' onclick="Solve('0')"> <input type="button" value='.' onclick="Solve('.')"> <input type="button" value='=' onclick="Result()"> </div> </form> </div> </div> <script src='index.js'></script> </body> </html>

Comments

Popular posts from this blog

Meiyazhagan (2024) Dual Audio [Hindi ORG]

Screenshort : Download Link: https://www.effectiveratecpm.com/cp6fnwd551?key=44ff34a577482ac9d5d2841b531ef952 Notice: Link copy and paste any Browser and Enjoy😊

Kalki 2898 – AD (2024) [Hindi ORG]

  Screenshort: Download Link https://www.effectiveratecpm.com/cp6fnwd551?key=44ff34a577482ac9d5d2841b531ef952 Notice: Link copy and paste any Browser and Enjoy😊

The Wild Robot (2024) Dual Audio [Hindi (Clean)

  Screenshort: Download LInk: https://www.effectiveratecpm.com/cp6fnwd551?key=44ff34a577482ac9d5d2841b531ef952  https://www.effectiveratecpm.com/ic3bxc2h7?key=7daf2971028e38498139c0342ffe7f6c Notice: Link copy and paste any Browser and Enjoy😊