1
votes
#include <stdio.h>

int main()
{
    int i;

    for(i=0;i<=2;i++)
    { 
        int i=8;
        printf("%d",i);
    }

    printf("%d",i);

    return 0;
}
What's your question? It gives output because you call printf(). - Barmar
run it and see... - OldProgrammer
@OldProgrammer That just shows the output, it doesn't explain "how" that output was generated. - Barmar