C++ cout print a table of numbers, use the \t tab character

Description

C++ cout print a table of numbers, use the \t tab character

#include <iostream>
using namespace std;
int main()/*from w  ww. j  a  va 2 s. c o m*/
{
   cout << "Parrots\tRams\tKings\tTitans\tChargers\n";
   cout << "3\t5\t3\t1\t0\n";
   cout << "2\t5\t1\t0\t1\n";
   cout << "2\t6\t4\t3\t0\n";
   return 0;
}



PreviousNext

Related