January 2019 0 16 Report
JAVASCRIPT: Proszę o poprawienie kodu tak żeby sie bok a ib wpisywalo w 2 kratki i zeby byl przycisk policz i zeby wyniki wyskoczyly bez odswiezania strony
oto kod:

var a = prompt("Podaj a");
var b = prompt("Podaj b");
var a1 = parseInt(a);
var b1 = parseInt(b);

var wynikpole = a1 * b1;
var wynikobwod = 2 * a1 + 2 * b1;

alert("Pole wynosi " + wynikpole + ", a obwód " + wynikobwod);

More Questions From This User See All

Recommend Questions



Life Enjoy

" Life is not a problem to be solved but a reality to be experienced! "

Get in touch

Social

© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.