#include <iostream>
using namespace std;
int main ()
{
int a,b;
for (a=1; a<=10; a++)
{
for (b=1; b<=10-a; b++)
cout<<"*";
for(b=10; b<=a; b++) {
for (b=1; b<=a; b++)
cout<<"*";
}
cout<<endl;
}
system("pause");
}
samsons17 -4 Posting Whiz in Training
VernonDozier 2,218 Posting Expert Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.