Read string from keyboard


Levels of difficulty: / perform operation:

Programe

#include <stdio.h>
int main()
{
   char me[20];
 
   printf("What is your name?");
   scanf("%s",&me);
   printf("welcome , %s!\n",me);
 
   return(0);
}

Result

What is your name?john
welcome , john!