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
List the types of authentication?
What is the role of new keyword?
What is the ruby interface generator?
i have two class that contain's two methods as same name in derived class i have to call these two methods what will happen at run time ?
Define serialization in .net?
What is difference between metadata and manifest?
Name the tool which can convert visual basic old version to .net compatibility version?
what is common language specification?
What is trace in vb.net?
How do you script this scenario in QTP using VB? Verify XML attributes in XML message against XSD and data mapping of fields to Oracle tables? Verify data in XML to data in a defined table?
Described strong typing
Explain clr?
How vb implements the disconnected architecture as like vb.net?
What languages does the .net framework support?
What keyword is used to accept a variable number of parameter in a method?