Fliping This

So I Wrote Down This Code But Don't Know How To Make It To Where The Asterisks Are Descending Instead Of Ascending. Any Help Would Be Appreciated

#include<iostream>
#include<iomanip>
using namespace std;
int main ()
{
int x=0;
while(x<10){
int y=0;
while(y<x){
cout<<"*";
y++;
}
cout<<endl;
x++;
}          
system("pause");
return 0;
}
Start X At Ten And Then Count Down From That Instead Of Starting At Zero And Counting Up. By The Way It Is Very Hard To Read When Text That Has The First Letter Of Every Word Capitalized.
Sorry. I changed x to ten but not its not displaying anything. Do i need to change anything else?
Well you need to make sure the loop conditions is x >= 0, and that it decrements x instead of incrementing it.
Thank you
Topic archived. No new replies allowed.