Postingan

Menampilkan postingan dengan label membuat aplikasi di Sketchware

Sketchware - Kalkulator html/js

Gambar
Guide HERE ! Code html : data:text/html,<html> <head> <title>Kalkulator Sederhana</title> </head> <style type="text/css"> body{ margin: 0 auto; } .konten{ margin: 8px; font-size:60px; } .inpme{ padding: 5px; } </style> <body> <script language="JavaScript" type="text/javascript"> function hitung(){ var myForm = document.formcalc; var x=eval(myForm.x.value); var y=eval(myForm.y.value); var pil= myForm.opt.value; if (pil == "tambah") { var z = x + y;   } else if (pil == "kurang") { var z = x - y; } else if (pil == "kali") { var z = x * y;   } else if (pil == "bagi") { var z = x / y; }   myForm.hasil.value = z; myForm.x.value = "";   myForm.y.value = ""; } function resetForm(){ document.formca