Відмінності між версіями «Test2»

нема опису редагування
Рядок 51: Рядок 51:
       /*If no switching has been done AND the direction is "asc",
       /*If no switching has been done AND the direction is "asc",
       set the direction to "desc" and run the while loop again.*/
       set the direction to "desc" and run the while loop again.*/
       if (switchcount == 0 && dir == "asc") {
       if (switchcount == 0 && dir == "asc") {dir = "desc"; switching = true; }
        dir = "desc";
        switching = true;
      }
     }
     }
   }
   }