Skip to content
Sign upLog in
← Back to Community

I need help with this.. I’m not sure what to do..

Profile icon
Destiny2019

Write ONLY the requested function and any additional functions you deem necessary to define the requested function. Assume that you only have access to the iostream and string libraries.
Write a void function named TimesTable() that takes an int parameter. If the parameter is a positive number less than or equal to 833, the function displays a times table that has the parameter number of rows and 12 columns including labels for the columns and rows. Each row will display the first 12 multiples of a number starting from 1 in sequential order. All numbers will display as four digit numbers with 0 padded to the beginning if necessary. There will be a space between each number in a row and the columns must align. For instances, the first three lines, if the parameter is greater than 1, would display as
0001 0002 0003 0004 0005 0006 0007 0008 0009 0010 0011 0012
0001 0001 0002 0003 0004 0005 0006 0007 0008 0009 0010 0011 0012
0002 0002 0004 0006 0008 0010 0012 0014 0016 0018 0020 0022 0024

Voters
Profile icon
nt-DaayfDaayf1
Profile icon
Destiny2019
Comments
hotnewtop
Profile icon
nt-DaayfDaayf1

4_scu

Profile icon
nt-DaayfDaayf1

4_scu

Profile icon
ash15khng
  1. What language are you using?
  2. Do you have any code yet?