Write A Function called 'Seperator' in C++ language which print 15 *s in a single line. Write Another Function named "Multiple" that takes an integer as an argument and prints its multiple up to ten terms, seperated by spaces,in a single line . Write A C++ Program which takes an integer "N" from user and calls these two functions to generate tables of all numbers between 1 to N. Your Program should have this

Output

Enter the value of N : 4the tables from 1 to 4 are :
1 2 3 4 5 6 7 8 9 10* * * * * * * * * * * * * *
2 4 6 8 10 12 14 16 18 20* * * * * * * * * * * * * *
3 6 9 12 15 18 21 24 27 30* * * * * * * * * * * * * * *
`4 8 12 16 20 24 28 32 36 40

Recommended Answers

a for loop for both functions will do but for Separator function just a cout will do just fine.

You can do this in about 5-10 minutes.

Jump to Post

All 2 Replies

a for loop for both functions will do but for Separator function just a cout will do just fine.

You can do this in about 5-10 minutes.

AND, we don't do your homework for you... :-(

Be a part of the DaniWeb community

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