Jump to content

check if a number is in a times table


pagegen

Recommended Posts

Hi Guys just need some advice really

 

I would like to know if there is a way I can check if a number is in a times table

 

for example

 

if(3 is in 4 times table){ do bla bla }

the result for above will be false as 4 times table does not contain 3

 

if(12 is in 4 times table){ do bla bla }

the above would be true

 

Thanks guys

Link to comment
https://forums.phpfreaks.com/topic/215280-check-if-a-number-is-in-a-times-table/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.