代码如下:package燤ethod_lianxi;public燾lass燤ethod_04爗爌ublic爏tatic爒oid爉ain(String[]燼rgs)爗
int燿ata; int爏um=0; System.out.println("Enter燼n爄nt爒alue:"); data=readInt(); while(data!=0) { 爏um+=data; 燬ystem.out.println("Enter燼n爄nt爒alue?the爌rogram爀xits爄f爐he爄nput爄s?"); 燿ata=readInt(); } System.out.println("The爏um爄s?+sum);爙}
牬砦笙允救缦拢籂