frog jumps 3 steps boxes in a chance. if we get 4 chances then how many boxes world it jump?
Answers
Answered by
1
Answer:
Day 1 the frog ends at 1 meter, Day 2 the frog ends at 2 meters, ... So on Day 27, the frog end at 27 meters. On Day 28, the frog goes up to 30 meters, then back down to 28 meters. On Day 29 the frog finally makes it to 31 meters (out of the well). This will help if you are still not convinced:
int height = 30;
int curPos = 0;
int days = 0;
while(curPosheight){
break;
}
curPos -=2;
if(curPos>height){
break;
}
}
System.out.println(days);
Step-by-step explanation:
Answered by
3
Answer:
Water, a substance composed of the chemical elements hydrogen and oxygen and existing in gaseous, liquid, and solid states. It is one of the most plentiful and essential of compounds.
#stay safe...don't forget to wear mask...
Attachments:
Similar questions