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

Answer Posted / kaviyarasu

Imports system.console
Module Module1
Sub main()
Dim a, b, c As Integer
WriteLine("Ente a:")
a = ReadLine()
Console.WriteLine("Enter b:")
b = ReadLine()
c = a + b
WriteLine("The Result is:" & c)
ReadLine()
End Sub

End Module

Is This Answer Correct ?    14 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

612


What are different types of jit ?

595


Is vb net a scripting language?

548


Explain convert.tostring and i.tostring method?

529


What are the difference between structure and class?

561






What is the difference between compiler and interpreter?

550


What is the strong name in .net assembly?

567


Explain the use of console application?

536


Explain about delegate?

520


Explain how does the xmlserializer work?

594


How a base class method is hidden?

615


how many server control present in .net

2296


What is strong typing and weak typing?

547


What is a stream in vb.net?

528


What do you mean by option strict on?

664