求解jave题,急,write a program that will continuwrite a program that will continuously prompt an operator for integers and stop when the operator enters a 0(zero is the sentinel value).And the end of program,print how many(count)of only the number

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/29 03:12:22
求解jave题,急,writeaprogramthatwillcontinuwriteaprogramthatwillcontinuouslypromptanoperatorforintegersan

求解jave题,急,write a program that will continuwrite a program that will continuously prompt an operator for integers and stop when the operator enters a 0(zero is the sentinel value).And the end of program,print how many(count)of only the number
求解jave题,急,write a program that will continu
write a program that will continuously prompt an operator for integers and stop when the operator enters a 0(zero is the sentinel value).And the end of program,print how many(count)of only the numbers entered that are less than the first number entered.

求解jave题,急,write a program that will continuwrite a program that will continuously prompt an operator for integers and stop when the operator enters a 0(zero is the sentinel value).And the end of program,print how many(count)of only the number
又是我~~

public class abc { public static void main(String[] args) { int i,j,k; int a,b=0; for(i=1;i<10;i++) { //实际上i只能为1,我试