Using nestedfor loops, write the code needed to output the following to the screen (see grid below). You MUST usenested for loops to complete this – one outerfor loop and one innerfor loop. Switches, if/else and other loops should not be present. There must beonly one print statement that outputs a number, and you may only output one number at a time. Additional print statements for spacing requirements are allowed.Do not define any classes or methods. You may only use techniques and data structures that have already been covered in this class.
12 15 18
21 24 27
30 33 36
39 42 45
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here