Guest User

Untitled

a guest
May 22nd, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. Private Sub Command1_Click()
  2. c = Val(InputBox("Ââåäèòå çíà÷åíèå ÷èñëà c", "Ââîä çíà÷åíèé"))
  3. Text1.Text = c
  4. b = Val(InputBox("Ââåäèòå çíà÷åíèå ÷èñëà b", "Ââîä çíà÷åíèé"))
  5. Text2.Text = b
  6. If c > b Then
  7. x = Format$(c / b, "0.0000")
  8. Text3.Text = x
  9. MsgBox "×èñëî à áîëüøå b, x=" & x, vbInformation, "Âû÷èñëåíèå âûðàæåíèÿ"
  10. Else
  11. x = Format$(b / c, "0.0000")
  12. Text3.Text = x
  13. MsgBox "×èñëî c ìåíüøå èëè ðàâíî b, x=" & x, vbInformation, "Âû÷èñëåíèå âûðàæåíèÿ"
  14. End If
  15. End Sub
Advertisement
Add Comment
Please, Sign In to add comment