Question: Question 1: Write a code that take an integer value from user and check if it an odd integer. If it is an odd value
Question 1: Write a code that take an integer value from user and check if it an odd integer. If it is an odd value then program should prints out the diamond shape accordingly. If user entered even value, it should display "Value not perfect". Your program should be generic, user can enter any positive odd valuc, and program should display the output. (Once you finish you must push your code to your public GitHub profile repository). For example if user entered 5, it should display the diamond shape like below. For example if user entered 3, it should display the diamond shape like below. Question 2: Before starting this question, you must push your code of Question I to cloud (GitHub) repository and it must be synch with your local repository. Make a new branch on same repository to implement this question. Next you should add following features in your code Question 1. (Please note that you should use the code of Question 1. to implement Question 2 in same file). If the user entered even value, program must print a triangle shape instead of diamond, For example if user entered 4, your program should display the triangle shape like below. Note: Once you are done with implementation of question 2, now you should push the changes to cloud (your GitHub) repository
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
