Question: In c++ write a that asks the user to enter table of two integers in 2D array, firstly it should ask for two integers as
In c++ write a that asks the user to enter table of two integers in 2D array, firstly it should ask for two integers as well. The task is to replace the divisors of 4 and 5 with 0 (zero) on all indexes.
Note: You have to fill the 2D array with tables logically instead of manual entry.
Sample Output:
First integer : 3
Second Integer : 4
Table of entered integers:
| 3 | 6 | 9 | 12 | 15 | 18 | 21 | 24 | 27 | 30 |
| 4 | 8 | 12 | 16 | 20 | 24 | 28 | 32 | 36 | 40 |
Updated Array:
| 3 | 6 | 9 | 0 | 0 | 18 | 21 | 0 | 27 | 0 |
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
