Learning by doing: Reading books and trying to understand the (code) examples
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

18 lines
275 B

#include <stdio.h>
int main (void) {
char first_name[20];
char last_name[20];
printf("Your first name: ");
scanf("%s", first_name);
printf("Your last name: ");
scanf("%s", last_name);
printf("Your name is %s, %s\n", last_name, first_name);
return 0;
}