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 the use of system.diagnostics.process class?
What is an application domain? how they get created?
Explain the advantage of option strict on?
What is an assembly and its use?
What is econo-jit?
How to retrieve images in sql server database through vb.net?
Explain nested classes?
Explain about delegate?
Explain about jagged arrarys ?
how to get dynamic control array position or its index position?
What are the different variables in vb.net?
Why do we use ansi keyword?
Explain about branching logic control in vb.net?
What is the feature which is common to all .net languages?
Explain public assembly?