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
Can you please explain the difference between dispose and finalize()?
What is the difference between vb 6 and vb.net?
What is redim keyword?
Explain enumerator?
Explain what observations between vb.net and vc#.net?
Name some of the features present in vb 2005?
What do you mean by Redim in VB.NET?
Explain clr?
What are the different types of a stream?
What is the size of .net object?
What is the use of internal keyword?
What are the difference between dispose(), close(), exit(), end()?
What are the features present in vb 2005?
Explain private assembly?
Name a feature which is common to all .net languages?