/*  Program width.cpp
	Run once obeying instructions (i.e., enter number1 to 10)
	Run again with larger number (e.g., 123, or 1234)
*/
#include <iostream.h>
#include <iomanip>		//NOTE: new include directive; contains setw( )
using namespace std;

int main ()
{
	int number, how_wide;
	cout << "Enter an integer between 1 and 10: ";
	cin  >> number;
	cout<<"Here is your number with widths of 1, 2, 3, 4 and 5:\n";
	cout <<setw(1)<<number<<endl;
	cout <<setw(2)<<number<<endl;
	cout <<setw(3)<<number<<endl;
	cout <<setw(4)<<number<<endl;
	cout <<setw(5)<<number<<endl;
	
	cout<<"\nYou can set the width yourself.  How wide would you like it? ";
//Finish the program	
	
	
	return 0;
}

