Question: 7. Given the following four patterns: Pattern A Patterm B Pattern C Pattern D 123456 12345 1234 123 1 123456 21 12345 321 1234 4321
7. Given the following four patterns: Pattern A Patterm B Pattern C Pattern D 123456 12345 1234 123 1 123456 21 12345 321 1234 4321 123 1 2 1 2 123 1234 12345 12 54321 123456 1 Which of the pattern is produced by the following code? for (int i 1; 6: i++) 654321 for (int j 6:j 1: -) System.out.printi?j System.out.printinO: a. Pattern A b. Pattern B c. PatternC d. Pattern D 8. What is the output after the following loop terminates? int number int i; 25; boolean isPrime-true; for (is 2; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
