public class T1 { public static void main(String[] args) {
double[] myList = {.5,1.9,2.9,3.4,3.5};
double max = myList[0];
for(int i = 0 ; i < myList.length;i++){
if(myList[i] > max)max = myList[i];
}
System.out.println("Max Double is " + max);
}
}
برچسب:
نویسنده: کاوه محمدزادگان