class Program4
{
public static void main(String args[])
{
String company[] = {"LG","VIVO","OPPO","SAMSUNG","MI"};
int price[] = {2000,5000,1300,1200,6000};
int min = price[0];
for(int i=0; i<price.length; i++)
{
if(min > price[i])
{
min = i;
}
}
System.out.print("Lowest amount company: " + company[min]);
}
}
No comments:
Post a Comment