1010 < form class ="calc " name ="calculator ">
1111 < table >
1212 < tr >
13- < td colspan ="4 ">
13+ < td colspan ="5 ">
1414 < input type ="text " name ="display " id ="display " disabled >
1515
1616 </ td >
2020 < td > < input type ="button " name ="two " value ="2 " onclick ="calculator.display.value += '2' "> </ td >
2121 < td > < input type ="button " name ="three " value ="3 " onclick ="calculator.display.value += '3' "> </ td >
2222 < td > < input type ="button " class ="operator " name ="plus " value ="+ " onclick ="calculator.display.value += '+' "> </ td >
23+ < td > < input type ="button " class ="operator " name ="power " value ="** " onclick ="calculator.display.value += '**' "> </ td >
2324 </ tr >
2425 < tr >
2526 < td > < input type ="button " name ="four " value ="4 " onclick ="calculator.display.value += '4' "> </ td >
2627 < td > < input type ="button " name ="five " value ="5 " onclick ="calculator.display.value += '5' "> </ td >
2728 < td > < input type ="button " name ="six " value ="6 " onclick ="calculator.display.value += '6' "> </ td >
2829 < td > < input type ="button " class ="operator " name ="minus " value ="- " onclick ="calculator.display.value += '-' "> </ td >
30+ < td > < input type ="button " class ="operator " name ="" value ="- " onclick ="calculator.display.value += '-' "> </ td >
2931 </ tr >
3032 < tr >
3133 < td > < input type ="button " name ="seven " value ="7 " onclick ="calculator.display.value += '7' "> </ td >
3234 < td > < input type ="button " name ="eight " value ="8 " onclick ="calculator.display.value += '8' "> </ td >
3335 < td > < input type ="button " name ="nine " value ="9 " onclick ="calculator.display.value += '9' "> </ td >
3436 < td > < input type ="button " class ="operator " name ="times " value ="x " onclick ="calculator.display.value += '*' "> </ td >
37+ < td > < input type ="button " class ="operator " name ="div " value ="/ " onclick ="calculator.display.value += '/' "> </ td >
3538 </ tr >
3639 < tr >
3740 < td > < input type ="button " id ="clear " name ="clear " value ="c " onclick ="calculator.display.value = '' "> </ td >
3841 < td > < input type ="button " name ="zero " value ="0 " onclick ="calculator.display.value += '0' "> </ td >
42+ < td > < input type ="button " name ="zero " value =". " onclick ="calculator.display.value += '.' "> </ td >
3943 < td > < input type ="button " name ="doit " value ="= " onclick ="calculator.display.value = eval(calculator.display.value) "> </ td >
40- < td > < input type ="button " class ="operator " name ="div " value ="/ " onclick ="calculator.display.value += '/' "> </ td >
41-
44+ < td > < input type ="button " name ="zero " value ="% " onclick ="calculator.display.value += '/100*' "> </ td >
4245 </ tr >
4346 </ table >
4447 </ form >
4548</ body >
46- </ html >
49+ </ html >
0 commit comments