<table border="1">
<?php
$table = 8;
for($i=1;$i<=10;$i++)
{
echo "<tr>";
for($j=1;$j<=$table;$j++)
{
if($j%2==0){
echo "<td style='color:green;'>".$i*$j."</td>";
}
else{
echo "<td style='color:red;'>".$i*$j."</td>";
}
}
echo "</tr>";
}
?>
</table>
Choose the right course and start building your future with practical skills.
Learn HTML, CSS, JavaScript, and PHP to build modern, responsive websites and real-world projects.
Enroll Now See Full Details
Understand electronics basics with hands-on breadboard projects and circuit building techniques.
Enroll Now See Full Details
Step into AI with real-world applications, automation tools, and smart development techniques.
Enroll Now See Full Details