Hi,
I have started to study the C language, and as anyone, problems are on.
I am having problems with the for comand for; I do apologise if I am not using the CODE and the ICODE correctly.
here an example:
#include<stdio.h>
int main()
{
int i;
int b;
for(i = 1;i<=20;i++)
{
b = i * 30;
printf("b é uguale a: %d = %d * 30\n\n",b, i);
}
printf("b é uguale a: %d * 30\n", i);
return 0;
}
If you will run this program after compilation, in the "printf" out the for cicle for will increase the i variable beyond the limit set in the statement.
Why????
Thank you for your help.
Bye Bye
Fab2