Thursday, 24 January 2013

program 2-13(69) prob 12 print the asterisks shpwn below

#include <iostream>
#include <limits>
#include <iomanip>

using namespace std;

int main()

{
    for(int i=0; i<10; i++)
    {
     cout << "*";
    }



    cout << setw(15) << "* \n";
    cout << setw(15) << "** \n";
    cout << setw(15) << "*** \n";
    cout << setw(15) << "***** \n";

    cin.ignore(numeric_limits<streamsize>::max(), '\n');
    cin.get();
    return 0;
}

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Enterprise Project Management