Tuesday, April 7, 2020

Write a program in php to print the multiplication table of 9

Write a program in php to print the multiplication table of 9:

Answer:

<? php
define('a', 9);   
for($i=1; $i<=10; $i++)   
{   
  echo $i*a;   
  echo '<br>';     
}  
?>

No comments:

Post a Comment

Featured posts

How to study?

  How to study? Struggling to concentrate on your assignment? Worried about delivering a presentation?  Facing academic challenges ? We prov...

Popular posts