how to get sum of two numbers in vb.net?
Answer Posted / shaker
Dim X As Integer
Dim Y As Integer
Dim Sum As Integer
Sub Main()
Console.WriteLine("Enter the number for X")
X = Console.ReadLine()
Console.WriteLine("Enter the number for Y")
Y = Console.ReadLine()
Sum = X + Y
Console.WriteLine("The sum of Two numbers is: " & Sum)
Console.ReadLine()
End Sub
End Modu
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Explain global assembly cache (gac)?
What keyword is used to accept a variable number of parameter in a method?
Name a feature which is common to all .net languages?
How would you implement inheritance using vb.net?
What are the difference between dispose(), close(), exit(), end()?
What is static member?
how to get dynamic control array position or its index position?
What do you understand by vb.net?
What is the significance of delegates?
Can you please explain the difference between int and int32?
Explain option strict?
Explain about rapid application development tool?
What is the difference between c# and vb.net?
what is common language specification?
what is interface and when it is used?