Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var b =parseInt(prompt("Podaj liczbde"));
- var c = parseInt(prompt("Podaj liczbe"));
- var a = parseInt(prompt("Podaj liczbe"));
- var d = prompt("Podaj swoje imię:", "john");
- alert('witaj'+a);
- if((a+b)>c)
- {
- if((a+c)>b)
- {
- if((c+b)>a)
- {
- alert("To jest trojkat");
- var ob= b + c + a;
- var h=(b+c+a)/2
- document.write(ob+'<br>');
- document.write(h+'<br>');
- }
- else
- {
- alert("to nie jest trojkat");
- }
- }
- else
- {
- alert("to nie jest trojkat");
- }
- }
- else
- {
- alert("to nie jest trojkat");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement