• Breaking News

    Tuesday 10 January 2017

    C++ Printing data in tabular form using setw()

    ~Write a program that generates the following output:

    1990       135
    1991      7290
    1992     11300
    1993     16200

    Use a single cout statement for all output. 

    CODE:
    #include <iostream>
    #include <iomanip>
    /*  Author: Danial Ahmed
        Website: http://program-cpp.blogspot.com/
        Contact: danyalphc@gmail.com */
    using namespace std;
    int main(){

        cout << "1990" << setw(10) << "135" << endl
        << "1991" << setw(10) << "7290" << endl
        << "1992" << setw(10) << "11300" << endl
        << "1993" << setw(10) << "16200" << endl;
        return 0;
    }
     OUTPUT:



    1 comment:

    1. Casino Review - MGM Resorts
      The casino has 1,300 slot machines, 7 table games, 김제 출장마사지 and poker machines; as 이천 출장안마 well as 여수 출장마사지 a 논산 출장샵 sports bar, restaurants, and bars. 경상북도 출장안마 The casino also offers a

      ReplyDelete