0
Someone help me with loops
Someone help me with loops. I don't understand the ABC of lopps.
3 Answers
+ 3
loops helps you to write multiple line of similar codes
for example:
x = x +1
x = x+2
x = x+3
instead we can use loops to help us
initial value ; condition ; increment
for(var i = 1 ; i <= 3 ; i++ ){
x = x + i ;
}
0
What is the use of it here for(int i=0; i<inLen; i++){
if(lCase.charAt(i)!=' '){
int alphaLoc =cwAlpha.indexOf(lCase.charAt(i));
lCase=lCase.substring(0, i)
0
Here it use loop to remove spaces or print only letter