Advertisement
vencinachev

IvelinQuestion

Apr 8th, 2019
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.28 KB | None | 0 0
  1. public static void main(String[] args) {
  2.         int a = 0;
  3.         int half = 0;
  4.         boolean first = true;
  5.         while (true) {
  6.             if (first) {
  7.                 first = false;
  8.                 a = 100; // formula
  9.                 half = a /2;
  10.                 continue;
  11.             }
  12.             if (a == half) {
  13.                 break;
  14.             }
  15.             a = 100; // formula
  16.         }
  17.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement