C Program to Print and Display your name by User Input

  // C Program to Print and Display your name by User Input

#include<stdio.h>               //header file declaration

int main()                            //main method

{

    char name[10];                //variable declaration

    printf("Enter Name:");

    scanf("%s", name);                //input name

    printf("My name is: %s", name);                //print output

    getch();

}

OUTPUT:



Comments

Popular posts from this blog

C Program to print Fibonacci Series