import java.io.*; import java.util.*; public class SimpleDebugExample { public static void main(String argv[]) throws IOException{ Integer N = 1; Integer Sum = 0; Integer Bound = 50; while(Sum < Bound){ Sum += N; N++; } System.out.println(N+"\t"+Sum+"\t"+Bound); } }