package com.oned4z;
import java.util.Scanner;
/**
* @program: com.oned4z
* @description: 获取最低价手机价格
* @author: Mr.Lin
* @create: 2019年7月4日
**/
public class One03 {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
System.out.println("请输入5家店的价格");
int price []= new int[5];
for(int i = 0;i<price.length;i ) {
System.out.println("第" (i 1) "店的价格:");
price[i] = sc.nextInt();
}
int min = price[0];
for(int i = 0;i<price.length;i ) {
if(price[i]<min) {
min = price[i];
}
}
System.out.println("最低价格是:" min);
}
}