Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Search inside Integers
#7
LPG:
I think that your original code is O.K., as it counts any "5" in the inputted string, whether the user enters a number or a string.  That was the OP's proposal.  Who care if one inputs a string or a number, the question is, "How many characters "5" are there in what I inputted?".  Your code answers the question correctly.
Ralph, using QuickBASIC 4.5 and Windows XP Home Edition and Service Pack 2, with HP LaserJet 4L printer.
Reply


Messages In This Thread
Search inside Integers - by techdude2007 - 05-11-2008, 03:44 AM
Re: Search inside Integers - by roy - 05-11-2008, 04:19 AM
Re: Search inside Integers - by Ralph - 05-11-2008, 09:34 AM
Re: Search inside Integers - by LPG - 05-11-2008, 09:51 AM
Re: Search inside Integers - by Ralph - 05-11-2008, 11:14 AM
Re: Search inside Integers - by LPG - 05-12-2008, 10:54 AM
Re: Search inside Integers - by Ralph - 05-12-2008, 08:45 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)