#include #include class array { int n[20]; public: void getdata(void); int find_large(void); }; int array::find_large(void) { int max=n[0]; for(int i=1;i<10;i++) { if(n[i]>max) max=n[i]; } return max; } void array::getdata(void) { for(int i=0;i<10;i++) { cout<<"\n Enter the "<>n[i]; } } void main() { clrscr(); array s; s.getdata(); int q; q=s.find_large(); cout<<"\n\n The largest element in the array is :"<< q; cout<<"\n\t Written By: Sujit Kr Nayak\n\t Roll No: ELD09006"; getch(); }