#include <iostream.h>
#include<conio.h>
class MyClass
{
public:
int number;
void display();
};
void MyClass::display()
{
for(int i = 0; i<= number;i++)
{
cout<< "Hello World \n";
}
}
void main ()
{
clrscr();
MyClass myfirstobject;
myfirstobject.number =3;
myfirstobject.display();
getch();
}