PLEASE TELL OUTPUT...URGENT....
WILL MARK BRAINLIEST☆☆
HELP BRAINLY MEMBERS
Attachments:
Answers
Answered by
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
Answered by
4
The output of the following program is 3.
Similar questions
English,
6 months ago
English,
6 months ago
Computer Science,
6 months ago
Science,
11 months ago
Science,
1 year ago