d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Question About Duration
Add Reply New Topic New Poll
Member
Posts: 856
Joined: Oct 10 2018
Gold: 0.00
Aug 10 2020 02:57am
Hi,

can some1 help me with the following task:


What does the following program do and what is the duration of the program? First enter the duration of each line and then the total duration.

Public int calc (int[] array) {
int i = 0;
int j= array[0];
while (i < array.length) {
if (array > j) {
j = array;
}
i ++;
}
return j;
}

Help plz, can offer 3 fg ^^
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll