Java基础语法之for循环——计算顾客年龄比例
import java.util.Scanner;public class AgeRate{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); System.out.print("请输入顾客数目:"); int number = sc.nextInt(); int age = 0; int ageup30 = 0; int agelow30 = 0;