hello. This the program from the book. I am having a hard time understanding the code. I looked at the program output and tried to see what it is doing but no luck. can someone explain me what this program does.

CODE
#include <iostream>
using std::cin;
using std::cout;
using std::endl;

int main()
{
int widthValue = 4;
char sentence[ 10 ];

cout << ”Enter a sentence:” << endl;
cin.width( 5 ); // input only 5 characters from sentence


while ( cin >> sentence )
{
cout.width( widthValue++ );
cout << sentence << endl;
cin.width( 5 ); // input 5 more characters from sentence
}
return 0;