Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.21 KB | None | 0 0
  1.     static boolean checkTots(int d)
  2.     {
  3.         boolean x = false;
  4.         int c = 1;
  5.         int tots = 0;
  6.         while (tots > d)
  7.         {
  8.             tots += c;
  9.             c++;
  10.            
  11.             if (d = tots)
  12.                 x = true;
  13.             else
  14.                 x = false;
  15.         }
  16.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement