Python
Python
"""
This is a multi-line comment.
It can span multiple lines.
It is often used for documentation or for longer explanations.
"""
"""
#sequential
cm = float(input("Enter cm:"))
meters = cm/100
print(meters)"""
#if statement
if average >=70:
print(f"Your average {average} is Passed")
else:
print(f"Your average {average} is Failed")
#for loop
for i in range(1,number+1):
print("Helooo")
#for loop with conditional
print("Even numbers: ", end=" ")
for i in range(1,number + 1):
if i % 2 == 0 :
print(i, end=" ")
"""
"""
#while loop
x = 1
while x <= number:
print(x, end=" ")
x+=1
"""
"""
#while loop conditional
x=1
while x <= number:
if x % 2==0:
print(x, end=" ")
x +=1
"""
"""
y=1
#do-while loop
while True:
print(y, end=" ")
y +=1
if y >number:
break
"""