package edu.xcdq;
import java.util.Scanner;
public class DianJiLv {
public static void main(String[] args) {
System.out.println(" 迷你游戲平臺 >游戲點(diǎn)擊率 ");
? ? ? ? Scanner scanner =new Scanner(System.in);
? ? ? ? int count =0;
? ? ? ? for (int i =0; i <4 ;i++){
System.out.println("請輸入第"+(i+1)+"個(gè)游戲的點(diǎn)擊率:");
? ? ? ? ? ? int clickRate = scanner.nextInt();
? ? ? ? ? ? if (clickRate <100){
continue;
? ? ? ? ? ? }
count ++;
? ? ? ? }
System.out.println("點(diǎn)擊率大于100的游戲數(shù)是: "+count);
? ? ? ? System.out.println("點(diǎn)擊率大于100的游戲所占的比例為:"+(count/5.0)*100+"%");
? ? }
}