After typing 1 the program does this command printf("Janela ou porta?(j/p)"); and then closes for no apparent reason
#include <stdio.h>
#include<time.h>
#include<stdlib.h>
int main(){
    int resposta;
    char resp;
    ola:
    printf("Janela ou porta?(j/p)");
    scanf("%c",&resp);
    if (resp=='p'){
        printf("Go back(Type 1)");
        do{
            scanf("%d",&resposta);
        }while(resposta!=1);
        goto ola;
    }
}
 
     
     
    