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

Answer Posted / aman

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 ?    5 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to achieve Polymorphism in VB.Net?

695


Described strong typing

658


What is the purpose of an Assembly?

704


How to create a constant in vb.net?

707


What is deep copy?

639






Explain convert.tostring and i.tostring method?

598


How can I extract the formated word(bold,italic,underline,font,color etc) from the msword file.?

682


What is the difference between .dll extension and .exe extension files?

688


What is the feature anonymous type?

591


Explain namespace?

663


What is the significance of delegates. Where should they be used? What are the situations where we require them?

615


How does vb.net achieve polymorphism?

616


Explain about the feature anonymous type?

698


How to execute VB.NET PROJECTS,VB6.0 PROJECTS AND write their test cases.Need Reply Urgently

2100


Write a program that would find the nth term of a geometric progression, given the value of first term and common ratio. Any inbuilt function that the language provides for calculating exponent should not be used.

3196