#include <stdio.h>
#include <stdlib.h>
#include <string.h>


void run_times( int runs);

int main (){
    int i;

    while ( i <3) {
        run_times(i);
        printf("Looped\n");
        i++;
    }
}

void run_times( int runs) {
    int *x,k;

    if (runs == 0) {
        x = &k;
        *x = 1;
        printf("X is equal to %d and k is equal to%d\n", *x, k);
    }   
    if (runs == 1){
        printf("X is equal to %d and k is equal to%d\n", *x, k);
    }
}