lab/Multiplication Table/Multiplication Table 2.0
https://pastebin.com/pbp4qwNM
You will receive an integer as an input from the console. Print the 10 times table for this integer. See the examples below for more information.
Output
Print every row of the table in the following format:
{theInteger} X {times} = {product}
Constraints
- The integer will be in the interval [1…100]
Rewrite you program so it can receive the multiplier from the console. Print the table from the given multiplier to 10. If the given multiplier is more than 10 - print only one row with the integer, the given multiplier and the product. See the examples below for more information.
Output
Print every row of the table in the following format:
{theInteger} X {times} = {product}
Constraints
- The integer will be in the interval [1…100]
Здравей,
това не ми помага по никакъв начин. Не знам как се използва цикъла Do и за първи път виждам подобна задача.
OK, може да замениш do .. while (редове 10-13) с while-a по-долу ..
Това също не ми помага.