miércoles, 20 de julio de 2016

PRESENTACION DE UN CUADRADO

#include <stdio.h>
#include <conio.h>
#include <iostream.h>
void main ()
{
int  F=10, C= 30 , CO= 50 , FI= 10;
gotoxy(19,3);cout<<"INSTITUTO TECNOLOGICO SUPERIOR HUAQUILLAS";
gotoxy(32,4);cout<<"...LENIN ZAPATA....";
gotoxy(27,6);cout<<"PRESENTACION DE UN CUADRADO";
 for(int i= 1; i<=9 ; i++)
 {
  gotoxy(C,F);cout<<"*";
  gotoxy(CO,F);cout<<"*";
  F++;
 }
 for(int CC= 30; CC<= 50; CC=CC+2)
 {
  gotoxy(CC,F);cout<<"*";
  gotoxy(CC,FI);cout<<"*";
 }
 getch();

}

No hay comentarios:

Publicar un comentario