Philip 2224
Philip 2224
Phrase:
echoe $i, $i++, }
// Features akin to while
$i = 0; perform the operation {echo $i; $i++;}
while ($i < 5);
Features/Actions:
You are an adult if age >= 18; else, you are not an
adult if age < System.out.println("You are not an
adult."); }
// Case-switching assertion
$dayName; $dayOfWeek = 3;
Loop Declarations:
JAVA: The for, while, and do-while loop
statements are among the loop statements
available in Java.
`python
For loop for i in range(5):
print(i)
While loop i = 0 while i < 5: print(i) i += 1
Do-while-like functionality i = 0 while True:
print(i) i += 1 if i >= 5: break `
PHP: PHP is also capable of supporting while
loops, for loops, and an alternative syntax for do-
while-like operations.
{php}// For loop for ($i = 0; $i < 5; $i++) {echo $i;}
// Looping while
$i < 5; nevertheless, $i = 0 ~
static void Main where args are string
console.addNumbers(5, 10); int
sum.WriteLine(sum + "Sum: ");}