Guest User

Untitled

a guest
Jun 4th, 2021
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let yht=0, h=0, s0=0, s1=0, m0=0, m1=0;
  2. for (h=0; h<10; h++) {
  3.   s0=h;
  4.   for (m1=0; m1<6; m1++) {
  5.     s1=m1;
  6.     for (m0=0; m0<10; m0++) {
  7.       console.log(h+":"+m1+m0+":"+s1+s0);
  8.       yht++;
  9.     }
  10.   }
  11. }
  12. for (h=10; h<24; h++) {
  13.   s0=Math.floor(h/10);
  14.   s1=h % 10;
  15.   for (m1=0; m1<6; m1++) {
  16.     m0=m1;
  17.     console.log(h+":"+m1+m0+":"+s1+s0);
  18.     yht++;
  19.   }
  20. }
  21. console.log("Yhteensä", yht);
  22.  
Advertisement
Add Comment
Please, Sign In to add comment