Visual Basic

Moderators: None (Apply to moderate this forum)
Number of threads: 18011
Number of posts: 55384

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
multiplication table in visual basic Posted by Sam786 on 7 Oct 2009 at 10:45 AM
Hello people
please can you help me out urgently i need to make a multiplication table in visual basic using a for loop that displays the entire multiplication table for example if 5 is entered into the textbox the label will display the following:
5 * 1 = 5
5 * 2 = 10
5 * 3 = 15
5 * 4 = 20
5 * 5 = 25
5 * 6 = 30
5 * 7 = 35
5 * 8 = 40
5 * 9 = 45
5 * 10 = 50
5 * 11 = 55
5 * 12 = 60
Report
Re: multiplication table in visual basic Posted by nil_sharma on 19 Nov 2009 at 11:20 PM
Report
Re: multiplication table in visual basic Posted by sumanta11 on 23 Jan 2013 at 10:53 PM
Dim n, n1, i As Integer
n = Val(TextBox1.Text)
n1 = Val(TextBox2.Text)

For i = 1 To n1
Label1.Text += n & " * " & i & " = "
Label1.Text += i * n & vbNewLine & ""
Next



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.