fork download
  1. #include <stdio.h>
  2. int main(void) {
  3. char ch;
  4. char A[] = "abcdefg";
  5. int i;
  6. printf("배열 A: ");
  7. for(i = 0; i<7; i++) {
  8. printf("%c", A[i]);
  9. }
  10. printf("\n");
  11. for(i=6; i>=0; i--) {
  12. printf("%c",A[i]);
  13. }
  14. }
  15.  
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
배열 A: abcdefg
gfedcba