3. C – Get User Input

#include<stdio.h>
void main()
{
    char name[60];
    printf("Please Enter your Name :");
    scanf("%s",&name); //scanf will read an input.
    printf("You Entered : %s",name);
}


Output:

%d bloggers like this: