Guest User

Untitled

a guest
Oct 22nd, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.71 KB | None | 0 0
  1. Public Class Form1
  2.  
  3.         Dim nota As Integer
  4.         Dim media As Integer
  5.  
  6.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  7.  
  8.         If RadioButton1.Checked = True Then
  9.             nota = 3
  10.         End If
  11.  
  12.         If RadioButton6.Checked = True Then
  13.             nota = nota + 3
  14.         End If
  15.  
  16.         If RadioButton7.Checked = True Then
  17.             nota = nota + 3
  18.         End If
  19.         If nota = 9 Then
  20.             media = 10
  21.         End If
  22.     End Sub
  23.  
  24.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  25.         MessageBox.Show("Sua Nota Foi: " & media)
  26.     End Sub
  27. End Class
Add Comment
Please, Sign In to add comment