-6
What’s missing are the keys to the loop for
.
#include <stdio.h>
void main(){
for(int i = 0; i >= 1; i--){
printf("%d garrafas de cerveja no muro\n", i);
printf("bebo uma jogo no lixo\n");
printf("%d garrafas de cerveja no muro\n", i - 1);
if(i == 1){
printf("1 garrafa de cerveja no muro\n")
printf("bebo uma, jogo no lixo\n")
printf("nenhuma garrafa de cerveja no muro\n")
}
}
}
Oops, all right? I recommend you read this post, on how to ask questions. What about your code: Since you’re using the for loop to run multiple prints, you have to use wire fences to delimit which commands are inside and which are outside.
– Henrique Hott