Computer Science, asked by amanpremminz258, 11 hours ago

What will be the output of the method dimen() when the value of n[ ][ ] ={{2,3,7},{1,5,9},{10,-3,8}} ?​

Answers

Answered by nandkrsharma1
0

Answer:

Explanation:

Formula:

n

n/2 (n is even)

3n + 1 (n is odd)

n

Examples:

If n = 19 the sequence will be

Using the rule above and starting with 12, the sequence will be:

6

3

12

10

5

16

8

4

2

1.

19.

58

29

88

44

22

11

34

17

52

26

13

40

20

10

5

168

4

2

1.

Similar questions