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
Can we use Vb.Net and C# language simultaneously in one .Net application?
What are the advantages of vb.net and c#?
What is code security?
Explain the advantage of option strict on?
Explain strong name in .net assembly?
What is a preprocessor directive in vb.net?
Explain private assembly?
What is sealed class?
Explain about garbage collection?
What are the differences between vb.net and c#, related to oops concepts
What is the difference between vb 6 and vb.net?
What are the objects in asp.net?
what is intermediate language?
How to achieve Polymorphism in VB.Net?
Explain redim keyword?