- #1
adjacent
Gold Member
- 1,552
- 63
The title.
A friend of me told me the code in php
The result is the multiples of 5 in the first 100.
How do I reproduce this part:"$out[] = $i; " in C#?
I have searched everywhere but couldn't find how to do that.
A friend of me told me the code in php
Code:
<?php
for($i=0; $i<=100; $i++)
{
if($i%5==0)
{
$out[] = $i;
}
}
foreach($out as $val)
{
echo $val."<br>";
}
?>
How do I reproduce this part:"$out[] = $i; " in C#?
I have searched everywhere but couldn't find how to do that.
Last edited: