#include <iostream>

using namespace std;

int main()

{
    {
    int count;
    int innercount;
    count = 1;
    while (count <=1)
    {
          innercount = 1;
    while (innercount <= (12 - count) /2)
    {cout << " ";
    innercount++;
}
innercount = 1;
while (innercount <= count)
{
      cout << "@";
innercount++;
}
cout << endl;
count++;
}
return 0;

}
system("pause");
}

So I'm a bit of noob at this code, but I thought putting system("pause"); at the end would let me see it for more than a split second. What should I change?

You might want to put 'system("pause")' before return 0.

Thanks, I didn't catch that. I still have a lot to learn.

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.