Translate

Friday 1 October 2021

Control Flow Statements in Groovy Scripting groovy training videos in telugu 10

 Watch This Video

https://youtu.be/lGfc_UPWkug


-------------------------------------------------------------------------------------------------------------



//if and else
def x=10
if (x==10){
println "x is 10"
}
else{
println "x is not 10"
}

// while

def i=1

while (i<=10)
{
println i
i++
}

//using for loop

def list =[1,2,3,4]
for (num in list){
println num
}

No comments:

Post a Comment

Note: only a member of this blog may post a comment.