plz write a code in c++ to print the table of any number using"for"loop.

Bench commented: Yet another post showing no effort... When will you read the rules? -1

Recommended Answers

All 3 Replies

Member Avatar for GreenDay2001

What you have done till now? Post that and also Read This.

write code in c++ to find the table of any number using"for"loop.

commented: Show some attempt, rather than repeating the question. -1

no one is going to write the program or you, so you might as well read your text book and learn how to do it. Tables usually are two dimensional, with rows and columns and look something like below (I'm certain you have seen this before in hundreds of places)

1  2  3  4  5
2  3  4  5  6
3  4  5  6  7

To print the above table you need two for loops, one inside the other, one loop for rows and the other loop for the columns.


>>to find the table of any number
To find a table of what? Is it supposed to be a multiplication table ? Addition table ? you need to clarify the problem before you can begin to code it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.