Q6) Write a program that displays the
following pattern on screen.
*
***
*****
*******
#include <iostream>using namespace std;
int main()
{
cout<<" *\n"<<" ***\n"<<" *****\n"<<"*******\n";
return 0;
}
No comments:
Post a Comment