Computer Science, asked by greatthink, 11 months ago

PLEASE TELL OUTPUT...URGENT....

WILL MARK BRAINLIEST☆☆

HELP BRAINLY MEMBERS​

Attachments:

Answers

Answered by siddhartharao77
4

Sample Program:

double Ar[] = {12.3, 23.4, 34.5}

int len = Ar.length;

if(len < 5)

{

len = 5;

System.out.println(Ar.length);

}

else

{

System.out.println(len);

}

Output:

Total Number of elements in the array = 3.

len = 3.

if(3 < 5)  ----- condition is false.

{

Comes out of the loop

}

else

{

System.out.println(len);    ---------- 3.

Therefore, the output is 3.

Hope it helps!


greatthink: thank u
siddhartharao77: welcome
Answered by Siddharta7
4

The output of the following program is 3.


greatthink: tank u
greatthink: * thank you
Similar questions