Page 193 - C Programming
P. 193

for(count=0;count<100;count++)


                       {   gotoxy(3,5);  printf("Counter : %d",count);





                           di=count/10;




                           outport(0x378,0x00+di0);  /*7 Segment digit0*/


                           delay(d_lay);


                            di1=count%10;



                            outport(0x378,0x10+di1);  /*7 Segment digit1*/


                            delay(d_lay);


                         }


                       getch();


                    }
   188   189   190   191   192   193   194   195   196   197   198