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
Using VB, how can you change the Mouse Pointer?
What is public assembly?
Explain public assembly?
What is an application domain? how they get created?
What is strong name in .net assembly?
Explain the advantage of option strict on?
Explain redim keyword?
Explain option strict?
What is late binding and early binding?
What are the different variables in vb.net?
Explain some of the exclusive features which are present in vb?
Explain the use of new keyword?
Explain the difference between .dll extension and .exe extension files?
Before in my vb app I would just load the icons from dll. How can I load the icons provided by .net dynamically?
What do you mean by option strict on?