Advertisement
rizqiaak12

Untitled

Dec 18th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include <stdio.h> //soal 9
  2. #include <conio.h>
  3. void cetak(void);
  4. int n;
  5.  
  6. main(){
  7.  
  8. printf("Masukan Bilangan ke-n = ");
  9. scanf("%d",&n);
  10. cetak();
  11.  
  12. getch();
  13. }
  14.  
  15. void cetak(void){
  16. printf("%d ",n);
  17. n--;
  18. if (n>=0)
  19. cetak();
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement