Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Write a recursive function that prints the numbers 1 to X back to 1.
- * The function must only have one int input.
- * The function must consist of a single function
- * The function must not use loops
- * The function must not use static or global variables.
- * The function must use printf("%i\n",..) to print the numbers
- */
- #include <stdio.h>
- void f (int x);
- int main(int argsv, char ** argsc)
- {
- printf("Testing an input value of 35");
- f(35);
- printf("Finished testing an input value of 35");
- return 0;
- }
- void f(int x)
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement