• Language

    C

  • Description

    It asks for the name, and it prints it.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdio.h>
#include <stdlib.h>

int main (void)
{
    char your_name[63];
    printf ("Enter the your name: ");
    scanf ("%[^\r\n]", your_name);
    (void) getchar ();
    printf ("Your name: %s\n", your_name);
    putchar ('\n');
    system ("pause");
    return EXIT_SUCCESS;
}