Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that asks the user to enter table of two integers in 2D array, firstly it should ask for two integers as well.

Write a program 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 9 For Linux UNIX And Windows Advanced Database Administration Certification Certification Study Guide

Authors: Roger E. Sanders, Dwaine R Snow

1st Edition

1583470808, 978-1583470800

More Books

Students also viewed these Databases questions