#include <stdio.h>

main() {
  char s[200] = { 0 };
  int c, i;

  puts("Enter input string:");
  for (i = 0; (c = getchar()) != '\n'; ++i) {
    s[i] = c;
  }   

  puts("Contents of input string:");
  for (i = 0; s[i]; ++i) {
    printf("(%2d): (%3d) = %c\n", i, s[i], s[i]);
  }   

  return 0;
}