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
Post a Comment