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

Answer Posted / pavan kumar

imports system.console
sub main()
a,b as integer
c as String
Console.WriteLine("Ente a:")
ReadLine()
Console.WriteLine("Enter b:")
ReadLine()
c=a+b
Console.WriteLine("The Result is:"+c)
End Sub

Is This Answer Correct ?    22 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between static or dynamic assemblies?

559


What’s the difference between private and shared assembly?

689


difference between control and component more than one differences

2411


What are the shared variables?

552


What do you mean by serialization and deserialization and it's use.

603






How do you script this scenario in QTP using VB? Verify XML attributes in XML message against XSD and data mapping of fields to Oracle tables? Verify data in XML to data in a defined table?

2555


How can we store decimal data in .net?

539


What is trace in vb.net?

587


Can you please explain the difference between int and int32?

564


What are the differences between c# and visual basic.net?

529


Explain the use of new keyword?

557


What are the types of generations in garbage collector?

530


When do you use virutal keyword?

590


What are the different variables in vb.net?

518


Explain redim keyword?

545