C Programming Tutorial 77 - Nested While Loops

preview_player
Показать описание


~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~

🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
Рекомендации по теме
Комментарии
Автор

For Loops for this sort of thing make so much more sense to me !

LimeWitness
Автор

you could just have the incrementation at the end of the nested while loop

tiagorodrigues
Автор

Mine was slightly diferent but with the same result! :p

int main()
{
printf("Insira um valor para criar uma pirâmide. ");
int input;
scanf("%d", &input);

int i = 0;
while (i < input + 1)
{
int k = i;
i++;
while (k >= 0)
{
printf("%d ", k);
k--;
}
printf("\n");
}
return 0;
}

tsupi
Автор

Hello my nested while loop code didn't produce an output yet I copied the code from the video what might the problem

farhanazamanrozony
Автор

I think that nested statements can throw people...for a loop? 😎

PunmasterSTP
visit shbcf.ru