Write three statements to print the first three elements of array runTimes. Follow each statement with a newline. Ex: If runTime = {800, 775, 790, 805, 808}, print: 800 775 790
1 answer:
Answer:
Answered below
Explanation:
//Program is written in Java.
public void first three elements(int[] nums){
int I;
//Check if array has up to three elements
if(nums.length > 3){
for(I = 0; I < nums.length; I++){
while (I < 3){
System.out.println(nums [I]);
}
}
else{
System.out.print("Array does not contain up to three elements");
}
}
}
You might be interested in
Answer:
Usually when someone answers a question there would be an option to mark the brainliest. However, you only get one every like 24 hrs so if you already gave someone brainliest you can't give it to someone else for a while
Explanation:
2006 is the answer and the boston red sox were the first team to win 5 chamships
Answer:
Explanation:
A ruler
;););););););););););););););)
Answer:
Is there any options here
Lol sorry for wasting your time but I have to because it’s makin me answer questions