0
Hey guys can you explain this code for me . I know the answer but I don't know how solve .
$i = 1; While ($i<3){ Echo $ i%2; $i++; {
2 Answers
+ 2
$i = 1; <----> Declares a variable named 'i' and sets it to 1
While ($i<3) <----> A while loop, checks if i is less than 3, if it's not the loop stops
{
Echo $ i%2; <----> Prints the result of this operation
$i++; <----> Increases i by 1
}
0
Thanks Mahmoud but bro I want explain with step of solving like the answer is 10 but how I don't know .