- #include <conio.h>
- void main(void)
- {
- int row, column;
- clrscr();
- cprintf("This is line 1rn");
- cprintf("Line 2 is a little longerrn");
- cprintf("This is the last line");
- row = wherey();
- column = wherex();
- cprintf("rnThe cursor position was row %d column %dn",
- row, column);
- }