typedef struct{
	char str[3];
	int key;
	}note;

note sequence[] = {{,0},{,2},{,4},{,5},{,7},{,9},{,11},{,12}};

int main(void)
{
	int i=0;

	while(!kbhit())
	{
		printf(,sequence[i].str);
		sound(261.63*pow(2,sequence[i].key/12.0));
		delay(sequence[i].key%12==0?500:1000);
		i = (i+1)%8;
		i==0?printf():printf();
	}
	nosound();
	return 0;
}