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
what is difference between web.config and machine.config and where it will be ?
Which classes a dll can contain?
What are the shadow variables?
Explain the use of option explicit?
Explain jit?
What is a preprocessor directive in vb.net?
Explain global assembly cache (gac)?
Explain about the performance of visual basic?
What is private assembly?
Explain cls?
What are the technology areas that microsoft.net contains?
What is internal keyword in .net framework?
What is late binding?
How would you implement inheritance using vb.net?
Can you please explain the difference between thread and process?