Above the `while` statement, there's a `for` statement (input from user). Can you help?
I want to display the result using while. but the compiler didn't show it 

```
#include <iostream>
#include <string>

struct Cat
{
       std::string name;
       float weight;
       int age;
};

main()
{
      int i=0;
      Cat P [5];

      for ( i=0; i<5; i++)
      {
          std::cout<<"Enter your pet name: ";
          std::cin>>P[i].name;
          std::cout<<"Enter your pet age: ";
          std::cin>>P[i].weight;
          std::cout<<"Enter your pet weight: ";
          std::cin>>P[i].weight;
      } 

      while (i<5)
      {
            std::cout<<"Pet name: "<<P[i].name<<std::endl;
            std::cout<<"Pet age: "<<P[i].age<<std::endl;
            std::cout<<"Pet weight: "<<P[i].weight<<std::endl;

            i++;
      }

      system("PAUSE");
      return 0;

}     

```