Home > Back-end >  Output fell straight triangle and aligned right
Output fell straight triangle and aligned right

Time:06-05

For a small white c, I will never, * * * * *
* * * *
* * *
* *
*
You, o how to use the c programming, bosses help

CodePudding user response:

Has inclined diagonal as a function, is greater than or equal to the output the asterisk, else the output space

CodePudding user response:

Int main ()
{
Int I, j, n, m;
The scanf (" % d % d ", & amp; N, & amp; m);
for(i=0; i{
for(j=0; jif(i<=j) printf (" * ");
The else printf (" ");
}

return 0;
}

CodePudding user response:

I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html
  • Related