Last active
January 9, 2018 11:45
-
-
Save minardo/196f2fef1c97ac5b27c454d2516ee212 to your computer and use it in GitHub Desktop.
Analisa Algoritma Pada Pemrograman C
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "stdio.h" | |
| int PROSES(int A); | |
| int main() | |
| { | |
| int I,A; | |
| A=15; | |
| for(I=1; I<=3; I++) { | |
| A = PROSES(A); | |
| printf("%d\n", A); | |
| } | |
| return 0; | |
| } | |
| int PROSES(int A) | |
| { | |
| A=A*2; | |
| return A; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment