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 you please explain the difference between system.string and system.stringbuilder classes?
What is the difference between system.applicationexception class and system.systemexception?
What is a static class?
Explain the differences between vb.net and c#, related to oops concepts?
Explain the use of new keyword?
Can you please explain the difference between vb and vb.net?
difference between checkbox vs radiobutton??
What is the difference between manifest and metadata?
Explain jagged array in vb.net?
Write a program that would find the nth term of a geometric progression, given the value of first term and common ratio. Any inbuilt function that the language provides for calculating exponent should not be used.
Name the two main parts of .net?
Why do you need Lock in Visual Basic?
What is the use of assembly?
What is the maximum size of the textbox?
What is the advantage of using system.text.stringbuilder over system.string?