Status: Tags: #archivedCards/cmpt125/recursion Links: CMPT 125 Practice Problems
CMPT 125 Recursion Practice Problems
Questions
1- “3 2 1”, while loop from n to 1
2- “1 2 3”, while loop from 1 to n+1
3- Prints for n=3?
|
|
? “3 2 1 0 1 2 3”, yeah
4- Functionality? Prints on 3?
|
|
? 3, 2 2, 1 1 1 1, 0 0 0 0 0 0 0 0, $2^n$
5- Functionality, n=3?
|
|
?
Prints $2^k$ amount of asterisks, n=3 equals ********
6-
|
|
? Returns n*n
|
|
7-
Backlinks
|
|
References:
Created:: 2021-10-22 22:08