Computer Science, asked by btaneja001, 10 months ago

write a VB program to enter a person's name and personic age and to check the age eligible for voting or not using if then else statement and write complete steps how u do this in written form​

Answers

Answered by bilalkhanb
3

Program description is given below

Explanation:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

       Dim name As String

       Dim age As Integer

       name = TextBox1.Text

       age = TextBox2.Text

       If (age >= 18) Then

           Label1.Text = "Person is eligible for vote"

       Else

           Label1.Text = "Person is not eligible for vote"

       End If

   End Sub

Know More:

Q.1. What are Variable in VB

Click Here: https://brainly.in/question/8503665

Q.2. What are Variable in VB

Click Here: https://brainly.in/question/8503645

Answered by ratiemukucha
1

Answer:module module

sub main(

console writeline

Explanation:

Similar questions