ACTIVITY #3:
Instruction: Write VB.NET code to declare a variable to store the name and age of a person.
Example Output:
Hello, Jerick
You are 20 years old
Answer:
Module MainModule
Sub Main()
Dim name As String = “Jerick”
Dim age As Integer = 20
Console.WriteLine(“Hello, ” & name)
Console.WriteLine(“You are ” & age & ” years old”)
‘ Alternatively, you can use string interpolation for a cleaner code:
‘ Console.WriteLine($”Hello, {name}”)
‘ Console.WriteLine($”You are {age} years old”)
Console.ReadLine()
End Sub
End Module
Explanation:
the variable name is declared as a String and assigned the value “Jerick”. The variable age is declared as an Integer and assigned the value 20. The Console.WriteLine statements then display the greeting message along with the stored name and age.
Happy happiness woorden slogans spreuken citaten canvas words wall wijze ware geweldige prachtige. Per dev bem.docx. 100+ catchy personal declaration slogans 2023 + generator
Declaration slogans catchy bestslogans taglines. Portfolio output no. 8: slogan or personal declaration on being happy. 8+ personal declaration on being happy bago
Portfolio output no. 8: slogan or personal declaration or being happy. Make a personal declaration:(a slogan or poster) collect any colored. Portfolio #8: slogan or personal declaration on being happy-1
declaration
Happy happiness woorden slogans spreuken citaten canvas words wall wijze ware geweldige prachtige. 1000+ images about happy slogans on pinterest. Slogan or personal declaration on being happy – portfolio
declaration slogan
Happy happiness woorden slogans spreuken citaten canvas words wall wijze ware geweldige prachtige. Happy quotations. how to achieve your happiness by yourself. Download image of unit construction only