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 code security?
Explain manifest?
What is redim keyword?
What is the significance of delegates. Where should they be used?
what is the need for dynamic controls in vb.net? i would like to know for what purpose should we create the controls dynamically? please give the answer in simple words.
Explain the advantages of vb.net?
What are the advantages of vb.net and c#?
What is pre-jit?
What is difference between import system.data.sqlclient,system.data.oledb?
What are all the differences between dispose and finalize()?
What are the different types of Lock available in Visual Basic?
Explain the difference between an xml "fragment" and an xml "document."
Explain trace in vb.net?
What is the difference between static or dynamic assemblies?
What is intermediate langauge?