Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include <ctype.h>
- #include <math.h>
- void f(int broj) {
- if(broj == 0) {
- return;
- }
- for(int i = 0; i < broj; i++) {
- printf("%d ", broj);
- }
- f(broj - 1);
- }
- int main(int argc, char * argv[]) {
- f(4);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement