Cześć! Dawno tutaj nie pisałem, ale nie olałem tematu. W skrócie co u mnie, zapisałem się na Nokia academy, gdzie na wykładzie wstępnym uświadomiłem sobie że zwyczajnie brakuje mi podstaw. Zacząłem robić kurs #cs50 na Harvard University "Introduction to the intellectual enterprises of computer science and the art of programming." Aktualnie jestem na tygodniu pierwszym i rozwiązałem sobie piramidę mario z czego się bardzo cieszę bo myślałem nad tym godzinę ( ͡°͜ʖ͡°) #bedeprogramisto #programowanie
int main (void) { int height=0,k=1; do { height=get_int("What is the height? \n"); } while (height<1 || height>8 );
#bedeprogramisto #programowanie
int main (void)
{
int height=0,k=1;
do
{
height=get_int("What is the height? \n");
}
while (height<1 || height>8 );
for(int i=0; i<height; i++)
{
while(k<=height-i-1)
{
printf(".");
k++;
}
for(int j=-1; j<i; j++)
{
printf("#");
}
printf("\n");
k=1;
}
}