/*6. Write a program that prompts the user to enter the name first, and then prompts the user to enter his surname. Print the name and sex entered by the user on one line, and the next line prints the number of letters of the first and last name respectively.
The alphabet numbers are aligned with the end and beginning of the first and last name respectively. */
int main(void)
{
char fname[40];
char lname[40];
printf("please input your first name:");
scanf("%s", &fname);
printf("please input your last name:");
scanf("%s", &lname);
printf(" %s %s\n",fname,lname);
printf(" %*u %*u\n", strlen(fname), strlen(fname), strlen(lname),strlen(lname));
printf(" %-*u %-*u\n", strlen(fname), strlen(fname), strlen(lname), strlen(lname));
return 0;
}