Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main () {
- int x[ 10 ]; /* n adalah array yang memiliki nilai 10*/
- int i,j;
- for ( i = 0; i < 10; i++ ) {
- n[ i ] = i + 100;
- }
- for (j = 0; j < 10; j++ ) {
- printf("Elemen[%d] = %d\n", j, x[j] );
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment