You are on page 1of 3

NAME: Usman Akhtar Sindhu

ROLL NO: 006

DEPARTMENT: BSIT (3rd Semester)

SECTION: A

SUBJECT: Data Structure


PROGRAM:

#include<iostream>

#include<conio.h>

using namespace std;

class temp

private:

int abc[10];

public:

input()

cout<<"enter 10 values and press enter after every value:";

for(int i=0; i<=9; i++)

cin>>abc[i];

print()

for(int i=0; i<=9; i++)

if(abc[i]%2==0)

cout<<abc[i]<<endl;

};
int main()

temp obj;

obj.input();

obj.print();

OUTPUT:

You might also like