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
How do you call a stored procedure in Visual Basic?
Explain the difference between system.string and system.stringbuilder classes?
Explain about delegate?
How to execute VB.NET PROJECTS,VB6.0 PROJECTS AND write their test cases.Need Reply Urgently
What is the main use of a namespace?
What are the different types of applications supported in .net (or) .net framework?
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.
What is normal jit?
What is strong name in .net assembly?
Explain the components of common language runtime.
what is the advantage of option strict on?
What is the difference between readonly variable and constant variable?
Name some of the features of C# which are not present in VB.NET?
Define clr?
Name some of the features present in vb 2005?