12345
char myS[] = {'1', '2','3'}; int sum=0; int i=0; while(myS[i] != '\0') cout << myS[i++] -48 << endl;