Preview:
#include <stdio.h>
#include <dos.h>
#include <conio.h>

int main()
{
    
    int accNumber;
    
    float beginningBal, totalCharges, totalCredits, creditLimit, newBal;
    
    clrscr();
    
    gotoxy(20,4);
    printf("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
    
    gotoxy(20,5);
    printf("X                                      X");
    
    gotoxy(20,6);
    printf("X                                      X");
    
    gotoxy(20,7);
    printf("X                                      X");
    
    gotoxy(20,8);
    printf("X                                      X");
    
    gotoxy(20,9);
    printf("X                                      X");
    
    gotoxy(20,10);
    printf("X                                      X");
    
    gotoxy(20,11);
    printf("X                                      X");
    
    gotoxy(20,12);
    printf("X                                      X");
    
    gotoxy(20,13);
    printf("X                                      X");
    
    gotoxy(20,14);
    printf("X                                      X");
    
    gotoxy(20,15);
    printf("X                                      X");
    
    gotoxy(20,16);
    printf("X                                      X");
    
    gotoxy(20,17);
    printf("X                                      X");
    
    gotoxy(20,18);
    printf("X                                      X");
    
    gotoxy(20,19);
    printf("X                                      X");
    
    gotoxy(20,20);
    printf("X                                      X");
    
    gotoxy(20,21);
    printf("X                                      X");
    
    gotoxy(20,22);
    printf("X                                      X");
    
    gotoxy(20,23);
    printf("X                                      X");
    
    gotoxy(20,24);
    printf("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
    
    
    gotoxy(30,6);
    printf("Enter Account Number: ");
    scanf("%d" , &accNumber);
    
    gotoxy(27,8);
    printf("Enter Beginning Balance: ");
    scanf("%f" , &beginningBal);
    
    gotoxy(29,10);
    printf("Enter Total Charges: ");
    scanf("%f" , &totalCharges);
    
    gotoxy(29,12);
    printf("Enter Total Credits: ");
    scanf("%f" , &totalCredits);
    
    gotoxy(29,14);
    printf("Enter Credit Limit: ");
    scanf("%f" , &creditLimit);
    
    newBal= beginningBal + totalCharges - totalCredits;
    
    gotoxy(27,16);
    (newBal>creditLimit)? printf("Credits Limit Exceeded"): printf("Credits Limit Not Exceeded");
    
    gotoxy(31,18);
    printf("Account Number: %d\n" , accNumber);
    gotoxy(32,20);
    printf("Credit Limit: %.2f\n" , creditLimit);
    gotoxy(30,22);
    printf("New Balance: %.2f\n" , newBal);

    getch();
    
    
    return 0;
    
}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter