Saturday, July 29, 2017

Write five C++ statements to print the asterisk pattern as shown below.

/*

pattern

*****
*****
*****
*****

*/

/*
For more exercises and lessons, visit http://shegertech.blogspot.com/
or
shegertech.com
*/

#include <iostream>
#include <iostream>
using namespace std;

int main()
{
    cout<<"*****\n";
    cout<<"*****\n";
    cout<<"*****\n";
    cout<<"*****\n";
    cout<<"*****\n";
system("pause");
    return 0;
}

Share: