How to write a program to input basic information of the user in c programing.

Hello guy's this is Mayank singh Today i tell how you can store the basic information of the user in the c programming.
This is basic program for Beginner. If having any doubt you can ask on my mail id.

Watch videos here 
https://youtu.be/aRrOsoZ_RF4
______________________________________________
#include<stdio.h>
#include<conio.h>

void main()
{
int mob[10];
char name[10],lname[20],add[50],email[50],fname[30];
clrscr();

printf("\t\tEnter your Basic information");

printf("\n1].Enter your first name :");
scanf("%s",&name);

printf("\n2].Enter your last name :");
scanf("%s",&lname);

printf("\n3].Enter your father name");
scanf("%s",&fname);

printf("\n4].Enter your Home address");
scanf("%s",&add);

printf("\n5].Enter your email address: ");
scanf("%s",&email);

printf("\n6].Enter your mobile number");
scanf("%s",&mob);


clrscr();

printf("\n=========================WELCOME %s%s=========================",name,lname);
printf("\n\nThis is your basic information");
printf("\nFather Name : %s",fname);
printf("\nAddresh : %s",add);
printf("\nEmail : %s",email);
printf("\nMobile : %s",mob);

getch();

}

0 Comments

Oldest