Simple multiplication table
.NET Code
+ 0 likes
Please Register to submit score.
| Average Score | 0.0 (of 0 scores) |
| Date Added | Oct 13, 2009 |
| Last Updated | Oct 13, 2009 |
| Tags | application basic console multiplication multiply table time times vb.net visual |
Introduction

Only 8 .NET snippets? Guess I better put at least SOMETHING into it. Anyways, this is a simple console application, put it in a new console application project (I use Microsoft Visual Basic 2008 Express Edition).
It'll ask you for a number and then generate a multiplication table based on that number.
I know it's not the most advanced stuff in the world.. but hey, someone could learn from it (comments were included).
PS: For loops rock. Why does mIRC not have them?
.NET Snippet:
Simple multiplication table
Posted on Oct 13, 2009 11:02 am
Posted on Oct 13, 2009 11:02 am
Oh man, hawkee needs colour highlighting.. it's not as easy to read on here.
.NET Snippet:
Simple multiplication table
Posted on Oct 13, 2009 4:47 pm
Posted on Oct 13, 2009 4:47 pm
It isn't, nor is it properly equipped for GUI vb.net scripts. And i love your infinite logic, "Loop Until 1 = 2" Is it bad that that made me lol :P
.NET Snippet:
Simple multiplication table
Posted on Oct 13, 2009 4:50 pm
Posted on Oct 13, 2009 4:50 pm
Just fyi; you can use
instead of
sometimes it's a little easier, your choice really though
| Code: |
| Console.WriteLine("{0} * {1} = {2}", var, tablenum, var*tablenum) |
| Code: |
| Console.WriteLine(var & " * " & tablenum & " = " & var * tablenum & ".") |
.NET Snippet:
Simple multiplication table
Posted on Oct 13, 2009 6:45 pm
Posted on Oct 13, 2009 6:45 pm
How does that work?
.NET Snippet:
Simple multiplication table
Posted on Oct 13, 2009 6:59 pm
Posted on Oct 13, 2009 6:59 pm
I believe tablenum is being dimmed as a variant since you didn't specify a type, unless that's different in .NET than VB6. Looks like they should be integers too:
And rather than doing the Do...Loop Until 1 = 2, you can just do Do...Loop
| Code: |
Dim tablenum As Integer, var As Integer |
And rather than doing the Do...Loop Until 1 = 2, you can just do Do...Loop
.NET Snippet:
Simple multiplication table
Posted on Oct 14, 2009 1:28 am
Posted on Oct 14, 2009 1:28 am
I fixed the code highlighting for vb.net snippets. Thanks for catching that.
.NET Snippet:
Simple multiplication table
Posted on Oct 14, 2009 5:36 pm
Posted on Oct 14, 2009 5:36 pm
{x} is replaced by the word x commas after if you see me? so {0} is the first, {1} the next, etc.
.NET Snippet:
Simple multiplication table
Posted on Oct 14, 2009 7:58 pm
Posted on Oct 14, 2009 7:58 pm
Not sure what you mean jonesy.
.NET Snippet:
Simple multiplication table
Posted on Oct 15, 2009 5:54 am
Posted on Oct 15, 2009 5:54 am
He was referring to his previous comment:
| Quote: | ||||
Just fyi; you can use
instead of
sometimes it's a little easier, your choice really though |
.NET Snippet:
Simple multiplication table
Posted on Oct 15, 2009 1:39 pm
Posted on Oct 15, 2009 1:39 pm
Sorry, yeah i was adding to my previous comment.
.NET Snippet:
Simple multiplication table
Posted on Oct 18, 2009 10:56 am
Posted on Oct 18, 2009 10:56 am
well been a long time since ive been on here. and it seems the population for hawkee has dropped a lot. and at least you added VB codes area here :) but i use windows form applications. much better i think. and good to see you all again :)









