X-Received: by 10.52.236.196 with SMTP id uw4mr3447127vdc.2.1423663997154; Wed, 11 Feb 2015 06:13:17 -0800 (PST) X-Received: by 10.140.34.195 with SMTP id l61mr318771qgl.32.1423663997047; Wed, 11 Feb 2015 06:13:17 -0800 (PST) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!enother.net!enother.net!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!v8no8363020qal.1!news-out.google.com!n6ni3qar.0!nntp.google.com!i13no558125qae.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.basic.visual.misc Date: Wed, 11 Feb 2015 06:13:16 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=75.178.36.13; posting-account=bDZo8goAAADwRO71ouDFRMCIZ96XBCK3 NNTP-Posting-Host: 75.178.36.13 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: how do you read in an integer in a console application? From: gdotone@gmail.com Injection-Date: Wed, 11 Feb 2015 14:13:17 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Received-Bytes: 1583 X-Received-Body-CRC: 541007233 Xref: csiph.com comp.lang.basic.visual.misc:2235 i don't know the syntax for visual basic: prompt user to enter number1 read in number1 prompt user to enter number2 read in number2 so. Dim number1 As Integer Dim number2 As Integer Dim Sum As Integer Console.WriteLine("Enter first number: ") 'what is the command to read in a number for console application Console.WriteLine("Enter second number: ") 'what is the command to read in a number for console application sum = number1 + number2 'what is the command to display the sum for console application Console.WriteLine( sum ) thanks, i trying to learn vb g.