Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let yht=0, h=0, s0=0, s1=0, m0=0, m1=0;
- for (h=0; h<10; h++) {
- s0=h;
- for (m1=0; m1<6; m1++) {
- s1=m1;
- for (m0=0; m0<10; m0++) {
- console.log(h+":"+m1+m0+":"+s1+s0);
- yht++;
- }
- }
- }
- for (h=10; h<24; h++) {
- s0=Math.floor(h/10);
- s1=h % 10;
- for (m1=0; m1<6; m1++) {
- m0=m1;
- console.log(h+":"+m1+m0+":"+s1+s0);
- yht++;
- }
- }
- console.log("Yhteensä", yht);
Advertisement
Add Comment
Please, Sign In to add comment