So I am a 1st year computer engineer student, im having a problem with my loop my loop is supposed to look like this please send help My pincode is having an error, it was supposed to have a 3 attempts.-prugram1-jpg


Code:
//PROGRAMMER: EUSEBIO, ANGELO J.
// CpE 1-B
#include <stdio.h>
#include <conio.h>
int main()
{
    int choice, deposit_amount, withdraw_amount, pin, j, i, trial;
    float initial_amount = 20000, current_amount;
    char width, trans;
    pin = 012345;
    printf("#######################################################################################################################");
    printf("\n#                                                                                                                     #");
    printf("\n#                                               WELCOME TO LANDBANK                                                   #");
    printf("\n#     ATM 24 - HOUR SERVICES                                                                 VISA|BANCHET|PAYMAYA     #");
    printf("\n#######################################################################################################################");    
    
    
    while (pin = 12345)
    {
        for(j=1; j<=3; j++)
        
            {
            printf("\n");
            printf("%45c ENTER YOUR SECRET PIN NUMBER: ", width);
            scanf("%d", &pin);
        
            if (pin == 012345)
            {
                goto besugo;
                break;
            }
            else 
            {
            j++;
            printf("%45c PLEASE ENTER A CORRECT PIN NUMBER %d trial left",width, j);
            j--;
            }
            
    }
    besugo:
    printf("\n\n%37c*************Welcome to ATM Service*************", width);
    printf("\n%49c 1. Balance Inquiry ", width);
    printf("\n%50c 2. Withdraw Cash ", width);
    printf("\n%50c 3. Deposit Cash ", width);
    printf("\n%50c 4. Quit ", width);
    printf("\n%37c************************************************", width);
    printf("\n\n%45c Enter your choice: ", width);
    scanf("%d", &choice);
    
    switch(choice)
    {    
        case 1:
        printf("%45c YOUR BALANCE IS: %.0f", width ,initial_amount);
        whodoes:
        printf("\n%45c Do you wish to have another transaction?(Y/N): ",width);
        scanf("%c", &trans);    
        scanf("%c", &trans);
        
            switch (trans)
            {    
                case 'Y':     
                goto besugo;
                break;    
                    
                case 'y':     
                goto besugo;
                break;    
                            
                case 'N':    
                printf("\n\n%45c THANK YOU FOR USING ATM SERVICE!", width);
                break;
                
                case 'n':    
                printf("\n\n%45c THANK YOU FOR USING ATM SERVICE!", width);
                break; 
                }    
                {
                break;
                }
        case 2:    
        printf("%45c ENTER AMOUNT TO WITHDRAW: ",width);
        scanf("%d", &withdraw_amount);
        current_amount = initial_amount - withdraw_amount;
        
            if (withdraw_amount>10000)
            {
            printf("\n%45c You can only withdraw maximum amount of 10,000.00", width);
            goto whodoes;
            }
            else
            {
            printf("\n%45c PLEASE COLLECT CASH.......", width);     
            printf("\n%45c YOUR CURRENT BALANCE IS %.0f", width, current_amount);
            goto whodoes;
            break;
            }
            {
            break;
            }
        case 3:
        printf("%45c ENTER THE AMOUNT TO DEPOSIT: ", width);
        scanf("%d", &deposit_amount);
        current_amount = initial_amount + deposit_amount;
        printf("%45c YOUR CURRENT BALANCE IS %.0f", width, current_amount);
        goto whodoes;
        break;
        {
        break;
        }
        
        case 4:
        printf("\n\n%45c THANK YOU FOR USING ATM SERVICE!", width);
        break;
        
        default:
        printf("\n\n%45cINVALID TRANSACTION!", width); 
        break;            
}
break;
}
    
    
    
    
    
    
    
getch();
return 0;    
}