hi, I'm new to programming and joining forums of any sort! I'm trying to teach myself through books and this site.I am trying to produce this with nested for statements;
**********
0********* 0 = blank spaces
00*******
000******
0000*****
00000****
000000***
0000000**
00000000*
I've got this so far;
#include <stdio.h>
int main()
{
int a, b, c;
for(a = 0; a < 10; a++){
for(b = 10; b > 1; b--){
for(c = 0; c < a; c++){
printf(" ");}
printf("*");}
printf("\n");}
return 0;
}
I'm nearly there, I just don't know how to get rid of my extra spaces and *s.
Think i need another loop
Thanks for any help you can give