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++; {

2nd May 2021, 3:40 PM
Eymen Kassar
2 Respostas
+ 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 }
2nd May 2021, 4:09 PM
Carbon
Carbon - avatar
0
Thanks Mahmoud but bro I want explain with step of solving like the answer is 10 but how I don't know .
2nd May 2021, 4:19 PM
Eymen Kassar