Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Count the number of 3 number appers between 0-3333
#2
Solved: 10 Years, 10 Months ago
Why wouldn't you try this? If the answer is 1336, then this works.

Code:
for i = 1 to 3333
    for j = 1 to len(Cstr(i))
        if Asc(Mid(CStr(i),j,1)) = 51 Then
        iCnt = iCnt+1
        End If
    Next
Next
Reply


Messages In This Thread
RE: Count the number of 3 number appers between 0-3333 - by rdemers25 - 09-20-2010, 06:32 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Web Object Unique ID Number zunebuggy 0 1,469 07-10-2017, 05:37 PM
Last Post: zunebuggy
  VB Script to count number of links in a web page. Suma Parimal 4 24,831 07-01-2015, 12:59 PM
Last Post: govind
  Keep row number imbizile 0 2,611 09-18-2014, 03:31 AM
Last Post: imbizile
  Retrieve row number based on value in DataTable marfa 6 30,067 07-31-2014, 08:36 PM
Last Post: dharshinishankari@gmail.com
  Create a random number starting with an alphabet QTPmate 4 3,874 07-31-2014, 09:29 AM
Last Post: QTPmate

Forum Jump:


Users browsing this thread: 1 Guest(s)