#include <stdio.h>
#include <conio.h>

int main ()
{
    int k,l;
    char tecla;
    l=0;
    k=0;
    do
    {
	clrscr ();
	while (k==0)
	{
	    printf ("l=%d\n", l);
	    l=l+1;
	    k=kbhit ();
	}
	tecla=getch();
	k=0;
	l=0;
    }while (tecla != 'S' && tecla != 's');
    return 0;
}
