C++ cout setw() Generates table

Description

C++ cout setw() Generates table

#include <iostream>
#include <iomanip>
using namespace std;
int main()/*from   w w  w .  j  a v a  2s.co m*/
{
   cout << 1990 << setw(8) << 135 << endl
   << 1991 << setw(8) << 7290 << endl
   << 1992 << setw(8) << 11300 << endl
   << 1993 << setw(8) << 16200 << endl;
   return 0;
}



PreviousNext

Related