#include <stdio.h>

int main(void){
    int i = 0;
    int a = 0;
    int size = 10;

    for(i=0;i<size;i++){
        printf("%d\n",i);
        if(i==4){
            i=size;     /* if i becomes 4 we terminate the loop by setting the i to size */
            a = 10;     /* we need to set also a to 10 to skip the next check of a and terminate the loop */
        }

        if(a != 10){
            printf("A = %d\n\n",a);
            a++;
        }
    }
    return 0;
}