Advertisement
Josif_tepe

Untitled

Nov 12th, 2023
737
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4. #include <ctype.h>
  5. #include <math.h>
  6.  
  7. void f(int broj) {
  8.     for(int i = broj; i > 0; i--) {
  9.         for(int j = 0; j < i; j++) {
  10.             printf("%d ", i);
  11.         }
  12.     }
  13. }
  14.  
  15. int main(int argc, char * argv[]) {
  16.  
  17.     f(4);
  18.     return 0;
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement