Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static boolean checkTots(int d)
- {
- boolean x = false;
- int c = 1;
- int tots = 0;
- while (tots > d)
- {
- tots += c;
- c++;
- if (d = tots)
- x = true;
- else
- x = false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement