Print C++

10 November 2011
Write a program that produces the following output:

CCCCCCCCC         ++              ++
CC                ++              ++
CC          ++++++++++++++  ++++++++++++++
CC          ++++++++++++++  ++++++++++++++
CC                ++              ++
CCCCCCCCC         ++              ++

main.cpp

#include<iostream>

using namespace std;

int main()
{
    cout << "CCCCCCCCC         ++              ++" << endl;
    cout << "CC                ++              ++" << endl;
    cout << "CC          ++++++++++++++  ++++++++++++++" << endl;
    cout << "CC          ++++++++++++++  ++++++++++++++" << endl;
    cout << "CC                ++              ++" << endl;
    cout << "CCCCCCCCC         ++              ++" << endl;

    return 0;
}

0 comments:

Catat Ulasan

Terima kasih kerana memberi ulasan...