This blog assists in mastering C and C++ programming skills from basics to advanced levels.
Pages
▼
Monday, June 13, 2016
C program to read and print your first name.
//C program to read and print your first name.
#include<stdio.h> #include<string.h> void main() { char str[10]; printf("Enter your name:"); scanf("%s",str); printf("Your name is %s \n",str); } // This program will run and generate output as: Enter your name:ABC ABC
No comments:
Post a Comment