how to get sum of two numbers in vb.net?
Answer Posted / sonia
Sub Main()
Dim x, y, sum As Integer
Console.WriteLine("Enter two numbers")
x = Console.ReadLine()
y = Console.ReadLine()
sum = x + y
Console.WriteLine("Sum = " & sum)
Console.ReadLine()
'& is used for concatenation
End Sub
| Is This Answer Correct ? | 75 Yes | 19 No |
Post New Answer View All Answers
What is difference between import system.data.sqlclient,system.data.oledb?
What are the shared variables?
What is the difference between static or dynamic assemblies?
Write a VB.Net console program to check whether a number is perfect or not.
What do you mean by option strict on?
What is the difference between .dll extension and .exe extension files?
What is the use of console application?
List the two main parts of .net?
How to execute VB.NET PROJECTS,VB6.0 PROJECTS AND write their test cases.Need Reply Urgently
What is the importance of a Button control?
Explain code security?
What is strong typing and weak typing?
what's ArrayList in .Net (VB.Net or C#).What's the advantageous using ArrayList.
What is code security?
What do you mean by serialization and deserialization and it's use.