Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h> //soal 9
- #include <conio.h>
- void cetak(void);
- int n;
- main(){
- printf("Masukan Bilangan ke-n = ");
- scanf("%d",&n);
- cetak();
- getch();
- }
- void cetak(void){
- printf("%d ",n);
- n--;
- if (n>=0)
- cetak();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement