So I want to align my outputs like so:
John Smith Age: 34 Gender: M
Micheal Smith Age: 9 Gender: F
and so on
I have an array that contains the information for this and I loop through it and print the information:
for (int i = 0; i < ARRAY_LENGTH; i++) {
printf ("%s Age: %d Gender: \n", person[i].name, person[i].age, person[i].gender);
}
I am stuck on how to make it align so all the spaces are even.
Thanks