Click to See Complete Forum and Search --> : Please help me with this page


ImaanSA
October 20th, 2010, 12:27 PM
Hi all out here

Please, please tell me if I'm using the correct method to output the total in this problem. I've attached the file at the bottom as a picture cos I wasn't too sure how to do it. Thanks

Does it go like this:
Input 55 then divide it by 10 which will be 5.5
5.5 is not less than 1 so I choose the no answer, so my count now goes to two cos it was 1 first
and since it is not lesser than 1
I do it again by inputting 5.5 and dividing it by 10 which will now be 0.55
It is now lesser than 1 so I choose the yes answer
And my count goes to three
So my first output answer will be 3

Is it right, do I keep on inputting the numbers until it is lesser than 1, and increasing count each time until my answer comes to lesser than 1 then I write my output?

http://i873.photobucket.com/albums/ab294/duhaa123/1.jpg

S_M_A
October 20th, 2010, 02:45 PM
Check this out http://www.codeguru.com/forum/showthread.php?t=366302

Also read this http://www.codeguru.com/forum/announcement.php?f=7 and this http://www.codeguru.com/forum/misc.php?do=bbcode#code before you post your code

naemi
October 25th, 2010, 03:47 AM
Short answer: no, try again. You have the right idea but you're off by one.