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 branching logic control in VB.NET?
Explain the difference between datatable and dataset?
How can we remove handlers at run time?
Explain the difference between vb.net and c#, related to oops concepts?
Thank you for replying to my Question regarding Barcodes in VB.net. My next question is that how to use Barcode Fonts in VB.net I need a small code to Generate Barcodes in VB.net from a string of Values. This is the only problem i am left with in my project. Any body can help me please.
Name the two main parts of .net?
Can you please explain the difference between namespace and assembly?
Explain convert.tostring and i.tostring method?
What are all the parts of .net framework?
how to get dynamic control array position or its index position?
How to store images in sql server database through vb.net?
How can we store decimal data in .net?
Explain an assembly and its use?
Explain namespace?
What is the size of .net object?