We are now beginning C++
How do i format d string that cin is going to print to the screen.It's printing down some numbers like
12" ends: 2
8" ends: 1
1" end: 1

but i want it to align them so it's better formated(I belive we are suppose to use cin for now,but any help is appreciated)


Code:
 
 while ( height > 0 ) {
   for (int i = 12; i >= 2 && height != 0; i -= 2) {
		if ( height >= i ) {
		  std::cout << i << "\" ends: " << height/i << std::endl;
	height = height%i;
  }
   }