how to get sum of two numbers in vb.net?

Answer Posted / ambar

Sub Main()
Dim x, y As Integer
Console.Write("Enter value of x: ")
x = Console.ReadLine()
Console.Write("Enter value of y: ")
y = Console.ReadLine()
Console.Write("Sum x+y = ")
Console.WriteLine(x + y)
Console.ReadLine()
End Sub

Is This Answer Correct ?    10 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name some of the features present in vb 2005?

574


what is interface and when it is used?

1834


What is option strict?

521


What is the importance of a Button control?

875


How to connect crystal report in vb.net ?

579






Explain the difference between datatable and dataset?

560


What is the maximum size of the textbox?

536


Described strong typing and weak typing?

628


What are the difference between dispose(), close(), exit(), end()?

519


Explain about visual basic?

556


What is global assembly cache (gac)?

564


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.

2047


Explain the difference between value and reference types?

459


What is the difference between manifest and metadata?

552


What are the advantages of an assembly?

607