So I'm doing an assignment where the falling distance increases by five into the table and it stops once it's hit the inputted falling time. I have it working fine I just need to know how to have it print the actual falling time if it's not divisible by 5.
So basically need to find out how to do an "if statement to print the inputted falling time if it's not divisible by five.
I know this isn't right but will maybe help explain my issue if I'm not correctly wording it:
if(fallTime != /5)
{
*do calculations and print info*
}