package whileDemo;public class WhileDemo3 public static void whileDemo int number = 0; int sum = 0; while number10 number++; sum+=number; Syst
The output of the code will be:
1 3 6 10 15 21 28 36 45 55
原文地址: http://www.cveoy.top/t/topic/iioG 著作权归作者所有。请勿转载和采集!