ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  VB.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
how to get sum of two numbers in vb.net?
 Question Submitted By :: Vsreedevi
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how to get sum of two numbers in vb.net?
Answer
# 1
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 ?    18 Yes 3 No
Banshi
 
  Re: how to get sum of two numbers in vb.net?
Answer
# 2
Sub Main()
        Dim x, y, sum As Integer
        Console.WriteLine("Enter two numbers")
        x = Console.ReadLine()
        y = Console.ReadLine()
        sum = x + y
        Console.WriteLine("Sum = " & sum)
        Console.ReadLine()
        '& is used for concatenation
    End Sub
 
Is This Answer Correct ?    12 Yes 3 No
Sonia
 
 
 
  Re: how to get sum of two numbers in vb.net?
Answer
# 3
imports system.console
sub main()
a,b,c as integer
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 ?    0 Yes 0 No
Shamseena
 

 
 
 
Other VB.NET Interview Questions
 
  Question Asked @ Answers
 
hello friends.. when i deployment my project in the client machine that is successful but whenever i try to run my project using .exe file then it gives me error "<filename>.exe is not a valid win32 application." what i do somebody halp me pls  1
concept of object oriented programming Patni5
What is the Common Language Runtime? Ksb8
what do you mean by .Net Framework Guru-Tech11
How does you get record no from 5 to 15 from a dataset of 100 records? ABC2
hello dear friends my problem is that i want to save images that is pictures in SQL server using vb.net can any body help me to do so please  1
how to restore database using vb.net? TCS4
How do you declare static variable and how it is declared and what is its lifetime? Infosys3
ColumnMapping belongs to which namespaces?  1
diff b/w windows and console application?  2
What is the difference b/w Readonly Variable and Constant Variable? Sonata5
How do you validate Date by using which validation Control? HCL3
How to Insert a TextBox value in to Sql database using VB.Net coding?  3
What is the difference between Abstract Classes and Interfaces? Give the answer as a table format....  5
hi dear ? MY problem is that i m developing software for Library. and i want to connect a third party software with my VB.net program in order to calculate DDC number.I dont know how to do this if any body can help me please?  1
What is the Difference between CLR & CTS?  2
what is the base class of .net?  6
what are the difference between An input box and Message box ..?  3
in my windows application i have to show excelwork sheetwhich is stored in the local system can any one tell me the code?  1
wht is the use of console application?  3
 
For more VB.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com