#include #include void affichetable( int xOrg, int yOrg, int iTable ) { for( int i = 1; i <= 10; i ++ ) { int x, y; x = xOrg + (80/5) * ( ((iTable-1)%5)); y = yOrg + i + 11 * (iTable/6); gotoxy( x, y ); cprintf( "%-2d X %-2d = %-3d", iTable, i, i * iTable ); } } void main() { // Effacer l'ecran window(1,1,80,25); clrscr(); // afficher les tables for( int i = 1; i <= 10; i ++ ) { affichetable( 1, 1, i ); } // Attente touche getch(); }