Results 1 to 2 of 2

Thread: need help

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2003
    Location
    toronto
    Posts
    12

    need help

    i've already written this code to allow a user to logg on but i need to allow the user only two try after which the program should terminate. also i'm trying to enter three numbers and calculate the average

    Any ideas?
    Last edited by freddie_26; Feb 16th, 2003 at 03:17 PM.

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

    Re: need help

    calculating the average , do this :
    VB Code:
    1. Dim num1 As Integer = 2
    2.         Dim num2 As Integer = 4
    3.         Dim num3 As Integer = 6
    4.         MsgBox(num1 + num2 + num3 / 3)

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