[try Beta version]
Not logged in

 
student in a chaos..

Aug 21, 2008 at 9:20am
anyone pls help me to program a multiplication table in c++ using the iostream.h library
thnx!
Aug 21, 2008 at 9:30am
What is your problem? Where do you need help?

1
2
3
4
 loop 1
   loop 2
   some multiplication
   and a cout


Is that what you need?

int main
Aug 22, 2008 at 3:20am
you need to explain more, a progam to do multiplication or what??
Aug 22, 2008 at 3:41am
I find that a piece of graph paper helps, so I can draw what I want the output to look like and count character cells, etc.

You will probably also want to #include <iomanip> and use the setw() manipulator.

Now, so you know why for the negative-ish responses, it is because "help" doesn't mean we do the work for you. You can do this easily in an hour or so. If you get stuck, come back and post your code and where you are having trouble, and we'll help you through it.

Good luck!
Sep 14, 2008 at 3:38am
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <iostream>

using namespace std;

int main() {
    for (int a = 1; a < 12; a++) {
        for (int b = 1; b < 12; b++) {
            cout << a << " x " << b << " = " << a * b;
        }
    }

    return 0;
}


I haven't tested it but it's simple enough. I hope this is what you were asking for, the question wasn't very clear...
Last edited on Sep 14, 2008 at 3:39am
Topic archived. No new replies allowed.