student in a chaos..

anyone pls help me to program a multiplication table in c++ using the iostream.h library
thnx!
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
you need to explain more, a progam to do multiplication or what??
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!
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
Topic archived. No new replies allowed.