How to make C++ program to write a bio-data. :Today we make Program about bio data .the basic C++ programming outline to learn about the structure of a C++ program.
C++ Program to Write a Bio-data
#include<iostream>
#include<conio.h>
using namespace std;
main()
{
char name[16],gender[5];
float height;
int age;
cout<<"Enter the name of the student:";
cin>>name;
cout<<"Enter the sex of the student:";
cin>>gender;
cout<<"Enter the age of the student:";
cin>>age;
cout<<"Enter the height of the student:";
cin>>height;
cout<<"\nName of the student:"<<name<<endl;
cout<<"Sex of student:"<<gender<<endl;
cout<<"Age of the student:"<<age<<endl;
cout<<"Height of the student:"<<height<<endl;
getch();
return 0;
}
Output of Program
Enter the name of the student:Bilal Tahir khan Meo
Enter the sex of the student:Enter the age of the student:Enter the height of the student:
Name of the student:Bilal
Sex of student:Tahir
Age of the student:0
Height of the student:0