Saturday, 23 June 2012

how to make student's bio data using c++



This is the source code to make the student's bio data on c++
#include<iostream.h>
#include<conio.h>
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();
      }
End

5 comments:

  1. How do we solve this one:

    A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

    ReplyDelete
  2. How do we solve this one:

    A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

    ReplyDelete
  3. How can we write a program using stdio

    ReplyDelete
  4. bhai jan ,, programming galt ha error a rha ha

    ReplyDelete