X Tutup
package AllDailyPractice; import java.util.Scanner; public class WhileUsingBreak { public static void main(String[] args) { int n; Scanner sc = new Scanner(System.in); while(true) { System.out.println("Input an Integer"); n=sc.nextInt(); if (n==0) { break; } System.out.println("You enter Integer "+n); } } }
X Tutup