8
Translate to the language C: take a number on the keyboard and repeat the operation of multiplying it by three (printing the new value) until it is greater than 100. Ex.: if the user type 5, we should observe on the screen the following sequence: 5 15 45 135.
I don’t want answer I want a logical explanation about the exercise so I can solve it myself. I made it from here initially:
int main()
{
int num, i, aux = 1;
printf("digite um numero\n");
scanf("%i", &num);
for(i=3; i<=3; i++)
{
if(aux<=100)
{
aux=num*i;
printf("%i\n", aux);
}
}
return 0;
}
Eu não quero resposta eu quero uma explicação lógica sobre o exercício para eu poder resolver
I gave you a positive vote on the question, I would love to give you another just for your attitude.– Oralista de Sistemas