how do i split 478 into 4 and 78 as separate entities in turbo c++ please tomorrow i need to submit this project.

please help me
os: windows 7
how to split the number from the input such as 478 into 4 and 78 (separate entities)

Question is incomplete. Is it to be split as half or what?

I can assume that you are talking about half for example

INPUT: 1234 => OUTPUT: 12 34
INPUT: 12345 => OUTPUT: 12 345

well there are multiple way, one is read the data as string and split it into two halves

int main(){
 int i;
 char s[100];
 cin >> s;
 int n = strlen(s);
 char a[100];
 char b[100];
 for(i = 0; i < n/2; ++i)a[i] = s[i];
 a[i] = '\0';
 for(; i < n; ++i)b[i-n/2] = a[i];
 b[i-n/2] = '\0';
 cout << a << " " << b;
 return 0;
}