Translate into the C language: Take a number from the keyboard and repeat the operation by multiplying it by three (by printing the new value) until it is greater than 100. Eg if the user types 5, screen the following sequence: 5 15 45 135.
I do not want to answer I want a logical explanation about the exercise so I can solve it myself. I did this 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;
}