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

Answer Posted / banshi

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 ?    124 Yes 34 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which dll is used for microsoft .net run time?

751


Explain the advantage of option strict on?

735


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

736


What is private assembly?

737


What is the difference between Namespace and Assembly?

837


Explain public assembly?

762


What is a static variable?

1205


What are the differences between server-side and client-side code?

783


So you know which dll is used for microsoft .net run time?

768


What do you mean by deserialization?

796


What is the difference between custom control and user control?

795


difference between checkbox vs radiobutton??

2763


Described strong typing

776


What is normal jit?

837


write a program to develop a graphic user interface application of marks book with students names and their names.the program should show the following options main menu,add student details,display student details,maximum mark and minimum mark.

1438