Cant figure out whats wrong with this function but i think its probably a data type error.
Please help!
void displayName(){
char name[30];
int number, x;
printf("So..what is your name?\n");
scanf_s("%s",&name);
printf("Nice to meet you %s, how many times would you like to be cloned?\n",name);
scanf_s("%i", &number);
for(x=0; x<number; x++){
printf("%s",name);
}
}