program should print 0, 1, 1, 2. As another example, if the input is 9, the program should output 0, 1, 1, 2, 3, 5, 8, 13, 21. Ex 15) Devise an algorithm to input a positive integer, n, –
Please help me with these question. I am having trouble understanding what to do
For each question draw a flowchart (with pen and paper). And includes it postconditions and preconditions
Ex 14) Devise an
Ex 15) Devise an algorithm to input a positive integer, n, – and by using ‘*’ characters – output the figure below that has n rows, with 3 ‘*’ characters in the top row and 3*n characters in the last row. For instance, if input is 5, the figure on the left (and if the input is 12, the figure on the right) should be generated by the program.
Step by step
Solved in 3 steps with 1 images