Print Programming Assignment 1

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

****************************************
*         Programming Assignment 1     *
*          Computer Programming I      *
*           Author: Dek Wan            *
*      Due Date: Wednesday, Nov 10     *
****************************************

In your program, subtitute Dek Wan with your own name. If necessary, adjust the positions and the number of stars to produce a rectangle.

main.cpp

#include<iostream>

using namespace std;

int main()
{
    cout << "****************************************" << endl;
    cout << "*         Programming Assignment 1     *" << endl;
    cout << "*          Computer Programming I      *" << endl;
    cout << "*           Author: Dek Wan            *" << endl;
    cout << "*      Due Date: Thursday, Nov 10      *" << endl;
    cout << "****************************************" << endl;

    return 0;
}

0 comments:

Catat Ulasan

Terima kasih kerana memberi ulasan...