fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char num1[80];
  5. printf("Enter: ");
  6. gets(num1);
  7. for(char * c = num1; *c; ++c)
  8. printf("%02d",*c);
  9. puts("");
  10. }
  11.  
Success #stdin #stdout 0s 4456KB
stdin
AAA

stdout
Enter: 656565