Question: Write a java method that receives height of PTUKExam triangle and then displays a shape as shown in the figures below. For example: if
Write a java method that receives height of PTUKExam triangle and then displays a shape as shown in the figures below. For example: if height is 7 PTUKExam shape looks like the following: 1 7 2 3 2 135 7 Important Notes: 1) The method header is: void drawPTUKExamShape(int height) 2) You are not allowed to define new methods or use methods from java libraries 3) You are allowed to use exactly two loops while loop as outer Loop and do-while loop as inner Loop. 4) You cannot use the classes Arrays and String.
Step by Step Solution
3.46 Rating (162 Votes )
There are 3 Steps involved in it
Java public class PTUKExamShape public ... View full answer
Get step-by-step solutions from verified subject matter experts
