Code:#include <stdio.h> #include <stdlib.h> #include <string> int main(int argc, char *argv[]) { char name[]=""; int length=0, i=0; printf("Input your name: "); scanf("%c", name); length= strlen(name); printf("Your name is: "); while (i < length) { printf("%c", name[i]); i++; } printf("\n\n"); system("pause"); return EXIT_SUCCESS; }