You are on page 1of 1

#include<iostream>

using namespace std;

main()
{
struct students
{
int id;
string name;
string adress;
int age;
int income;

definestruct(students id,students name,students adress,students


age,students income)
{
students bcs11;
cout << "Enter your ID: " <<endl;
cin >> bcs11.id;

cout << "Enter your name: " << endl;


cin>> bcs11.name;

cout << "Enter your adress: " << endl;


cin >> bcs11.adress;

cout << "Enter your age: " << endl;


cin >> bcs11.age;

cout << "Enter your income: " << endl;


cin >> bcs11.income;
return bcs11;

}
};
}

You might also like