Answers for "break statement"

-1

kotlin string length

val hello = "Hello World"
    
    // Use .length to get length of string
    val stringLength = hello.length
Posted by: Guest on October-27-2020
0

break

#break - terminates the loop and make it out of it.
p=0
for i in range(3,15,2):
    if i>9:
        print('hello world')
    else:
        p=p+i
        print(p)
        break
print('conclude')
Posted by: Guest on December-12-2021

Browse Popular Code Answers by Language