Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- void gotoxy( int y, int x )
- {
- printf( "\033[%d;%df", x, y );
- }
- int main(void)
- {
- for (int x=0;x<=80;x++){
- gotoxy( x,1 );
- printf( "*" );
- }
- for (int y=0;y<=24;y++){
- gotoxy( 1,y );
- printf( "*" );
- gotoxy( 80,y );
- printf( "*" );
- }
- for (int x=0;x<=80;x++){
- gotoxy( x,24 );
- printf( "*" );
- }
- gotoxy (40,12);
- printf ("HOLA");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement