//Program raiz y cuadrado #include #include #include #define max 100 int i=1; main (void) { textcolor (9); textbackground (1); clrscr (); textcolor (15); clreol (); printf (" # \t\t #^2 \t\t sqrt(#) \n"); for (;i<=max;i++) { if (wherey() == 24) { textcolor (15); textbackground (4); puts(""); clreol (); gotoxy (23,25); printf (""); getch (); textcolor (9); textbackground (1); clrscr (); } printf ("\n %d \t\t %d", i, i*i); if (i % 2 == 0) printf ("\t\t %f", sqrt(i)); } getch (); return 0; }