#include <stdio.h>
int main(){
char last[20];
char first[20];
printf("Please enter your last name:");
scanf("%s",last);
printf("\nPlease enter your first name:");
scanf("%s",first);
printf("Here your email address\n",last,first,@student.com); //last first@student.com
}
Run Code Online (Sandbox Code Playgroud)
我希望用户写下他们的名字,我会自动输出他们的电子邮件.