pls tell this question it's important in java 60,61
Attachments:
Answers
Answered by
3
Import java.io.*;
Int max=arr[0];
int min=arr[0];
for(int i =0;i<arr.length;i++)
{
if(arr[i]>max)
Max=arr[i];
If(arr[i]<min)
Min=arr[i];
}
Syatem.out.prontln("the maximun temperature is="+max);
Syatem.out.println("the minimum temperatur is="min);
Hope it helps..
Plzz mark br
class Temperature
{
Public static void main()throws IOException
String city[]=new String[5];
int temp[]=mew int[5],t;
String x;
BufferedReader.......
Dexlare the array...accept the valies
agarwalmuskan442:
second question
Similar questions