
import java.util.Scanner;public class ABC {public static void main(String []args) { int num; Scanner scanner = new Scanner(System.in); System.out.println("Feed me with numbers!"); while((num = scanner.nextInt()) > 0) { System.out.println("Keep Going!"); } { System.out.println("Number is negative! System Shutdown!"); System.exit(1); } }}欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)