Page 187 - C Programming
P. 187
#include<stdio.h>
#include<conio.h>
main()
{ char key; clrscr();
printf("******************\n");
printf("7 Segment4 digits\n");
printf("******************\n");
do{
textcolor(WHITE);
gotoxy(7,4); cprintf("5555");
outport(0x378,0x05);
textcolor(RED);
gotoxy(7,4); cprintf("5");
getch();outport(0x378,0x15);