2. Based on chapter 6 (Methods). Write a program that has 3methods. CIT130-Assignment 3 – Chapters 5, 6&7 Page 2 Method 1:This method accepts the number of lines as its parameter forcreating the following pattern and returning the total of all ofthe numbers. The method simply displays the pattern and returns thetotal. For the given example, the number of lines is 4. I see thatI “loops” come in handy to solve this problem! 4 3 2 1 3 2 1 2 1 1If the number of lines is more than 8, do not display a pattern anddisplay a simple error
PayPal Gateway not configured
PayPal Gateway not configured