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
Explain how to store decimal data in .net?
What are option strict and option explicit?
What is econo-jit?
Using VB, how can you change the Mouse Pointer?
Sir, what code to store data from vb net sql server 2008 to 2005 and at the same time in order to validate the data entered is not the same, but there have been contacts in the module. Examples such as the log table that I created, the user name as the primary key.
Can you please explain the difference between authentication and authorization?
What is the difference between convert.tostring and i.tostring method?
Describe about visual basic.net?
Can you please explain the difference between system.string and system.stringbuilder classes?
What is trace in vb.net?
Can you please explain the difference between vb and vb.net?
How to create a constant in vb.net?
Explain the components of common language runtime.
What is enumerator?
Explain an assembly and its use?