Answer:
void printSecurityNumber(char * securityNumber){
char subs[9];
int i = 0;
while(i < 27){
subs[i%9] = securityNumber[i];
i++;
if(i == 8){
printf("%s\n", subs);
}
}
}
Explanation:
I am going to write a for loop for this.
The "break" is at a multiple at position 8(9 digit from position 0 to 8), 17(9 digits from position 0 to 17), 26(9 digits from position 18 to 26).
void printSecurityNumber(char * securityNumber){
char subs[9];
int i = 0;
while(i < 27){
subs[i%9] = securityNumber[i];
i++;
if(i == 8){
printf("%s\n", subs);
}
}
}