Private Sub Form_Load() Me.Hide Open App.Path & "\in.txt" For Input As #1 Open App.Path & "\out.txt" For Output As #2 Do While Not EOF(1)
Input #1, X Select Case X Case Is >= 10000: Print #2, X * 0.55 Case Is >= 5000: Print #2, X * 0.6 Case Is >= 2000: Print #2, X * 0.7 Case Else: Print #2, X End Select
Private Sub Form_Load() Me.Hide Open App.Path & "\in.txt" For Input As #1 Open App.Path & "\out.txt" For Output As #2 Do While Not EOF(1) Input #1, n Select Case n Case Is >= 10000: Print #2, n * 0.55 Case Is >= 5000: Print #2, n * 0.6 Case Is >= 2000: Print #2, n * 0.7 Case Else: Print #2, n End Select Loop Close #2 Close #1 End End Sub
Private Sub Form_Load()
回覆刪除Me.Hide
Open App.Path & "\in.txt" For Input As #1
Open App.Path & "\out.txt" For Output As #2
Do While Not EOF(1)
Input #1, X
Select Case X
Case Is >= 10000: Print #2, X * 0.55
Case Is >= 5000: Print #2, X * 0.6
Case Is >= 2000: Print #2, X * 0.7
Case Else: Print #2, X
End Select
Loop
Close #2
Close #1
End
End Sub
Private Sub Form_Load()
回覆刪除Me.Hide
Open App.Path & "\in.txt" For Input As #1
Open App.Path & "\out.txt" For Output As #2
Do While Not EOF(1)
Input #1, n
Select Case n
Case Is >= 10000: Print #2, n * 0.55
Case Is >= 5000: Print #2, n * 0.6
Case Is >= 2000: Print #2, n * 0.7
Case Else: Print #2, n
End Select
Loop
Close #2
Close #1
End
End Sub