#include <stdio.h>
#include <string.h>
int main(){
  char fname[]="KKKKKKKKKKKKKKKKKKKK";
  char sname[]="LLLLLLLLLLLLLLLLLLLL";
  char fullname[40];
  int i=-1,j=-1;

  printf("Enter your Full Name\n");
  do {i++;  
      scanf("%c",&fname[i]);
  }while (fname[i] != ' ');

  do {j++;  
      scanf("%c",&sname[j]);
  }while (sname[j] != '\n');

  printf("Firstname %s \nLastname %s \n",fname,sname);
  strcpy(fullname,fname);  
  strcat(fullname,sname);
  printf("Your fullname is %s \n",fullname);

  return 0;
}

