2. PROG 25. DESARROLLA EN PANTALLA QUE DESPLIEGUE EN PANTALLA UN MARCO.
#include<conio.h>
#include<stdio.h>
#include<iostream.h>
#include<dos.h>
Main( )
{
Int I;
Clrscr( );
For (i=0; i<10; i++)
{
gotoxy( 1+I,10);
cout<<”==||==”<<endl;
delay(200);
}
getch( );
}
3. PROG 26.DESPLIEGA EN PANTALLA UN MARCO CON EL COLOR QUE EL PROGRAMADOR ELIJA.
#include<conio.h>
#include<stdio.h>
#include<dos.h>
main( )
{
Int I;
clrscr( );
for( i=0;i<24;i++)
{
Textcolor(6);
gotoxy(1,1+i);
cprintf(”*”);
delay(100);
}
for(i=0;i<80;i++)
{
textcolor (6);
gotoxy(1+I,24);
cprintf(“*”);
delay(100);
}
for(i=0;i<23;i++)
{
gotoxy(80,23-i);
cprintf(“*”);
5. PROG 27. DESPLIEGA EN PANTALLA UN MARCO DE COLOR QUE EL USUARIO INDIQUE LO CUAL
DEBERAS DE DESPLEGAR UN MENU DE COLORES.
#include<conio.h>
#inlcude<stdio.h>
#include<dos.h>
Main ( )
{
Int a=0;
clrscr( );
gotoxy(25,2);
printf(“programa.27”);
gotoxy(32,4);
cprintf(“0negro”);
gotoxy(32,5);
cprintf(“1rojo”);
textcolor(1);
gotoxy(32,6);
cprintf(“2verde”);
textcolor(2);
gotoxy(32,7);
cprintf(“3amarillo”);
textcolor(3);
cprintf(“4azul”);
textcolor(4);
gotoxy(32,8);
cprintf(“5magenta”);