Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function soucetCisel(stopCislo) {
- let soucet = 0;
- let pocet = 0;
- let a = 0;
- while (a != stopCislo) {
- a = parseInt(Math.random() * 45) + 5;
- soucet += a;
- pocet += 1;
- console.log(a);
- }
- return "soucet cisel je " + soucet + " a jejich pocet je " + pocet;
- }
- console.log(soucetCisel(27));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement