Apr 8, 2016 at 12:53am
i get output lik
*
**
***
****
*****
but how can i change it like
*****
****
***
**
*
please help this question mae me carzy ahhhhhhhhhhhhhh
Last edited on Apr 8, 2016 at 1:02am
Apr 8, 2016 at 1:08am
Show your code and we can help. The one that you say your output is
Last edited on Apr 8, 2016 at 1:09am
Apr 8, 2016 at 1:41am
#include <iostream>
using namespace std;
int main()
{
for (int i=1 ;i<=4; i++)
{
for(int j=1; j<=i ; j++)
{
cout<<"*"<<" ";
}
cout<<endl;
}
return 0;