Results 1 to 3 of 3

Thread: Can This be Done

  1. #1

    Thread Starter
    Lively Member tcullen's Avatar
    Join Date
    Nov 2001
    Location
    Kent, England
    Posts
    66

    Can This be Done

    Can this be converted to something simpler ???
    PHP Code:
        total a(0) + a(1) + a(2) + a(3) + a(4) + a(5) + a(6_
                    
    a(7) + a(8) + a(9) + a(10) + a(11) + a(12) + a(13_
                    
    a(14) + a(15) + a(16) + a(17) + a(18) + a(19) + a(20)
                    
        
    total1 = (score 70) * 100 
    Like this ???

    total = Sum a(1 To 20) / 70 * 100
    Last edited by tcullen; Mar 10th, 2002 at 12:04 PM.

  2. #2
    AIS_DK
    Guest
    How about:

    VB Code:
    1. Dim i as byte
    2.  
    3. For i=0 to 20
    4.    Total = Total + a(i)
    5. Next i
    6. total1 = (Total / 70) * 100

  3. #3

    Thread Starter
    Lively Member tcullen's Avatar
    Join Date
    Nov 2001
    Location
    Kent, England
    Posts
    66
    Thanks for that finally worked out where to put the ode and it works perfectly

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width