C Program To Create Slate

/////////////////////////////////////////////////////////////////////////////
//     Slate Project....                        //
/////////////////////////////////////////////////////////////////////////////
 
 /////////////////////////////////////////////////

#include<constream.h>
#include<graphics.h>
void main(){
int gm,gd = DETECT;
 initgraph(&gd,&gm,"e:\\tc\\bgi");
 cleardevice();
       settextstyle(10,0,5);
       setcolor(WHITE);
       outtextxy(190,20,"SLATE.");

    int scol=240,srow=130,ecol=340,erow=245;
  for(int i=0;i<=9;i++){
  setcolor(YELLOW);
   rectangle(scol,srow,ecol,erow);
   scol++,srow++;
   ecol--;    erow--;
 }
   for( i=0;i<=40;i++){
 setcolor(8);
  rectangle(scol,srow,ecol,erow);
    scol++,srow++;
   ecol--;    erow--;}
   setcolor(RED);

    rectangle(239,129,341,246);
setcolor(0);
   line(240,130,250,140);
   line(240,245,250,235);
   line(340,130,330,140);
   line(340,245,330,235);






    getch();
getch();}
Bhanu Namikaze

Bhanu Namikaze is an Ethical Hacker, Security Analyst, Blogger, Web Developer and a Mechanical Engineer. He Enjoys writing articles, Blogging, Debugging Errors and Capture the Flags. Enjoy Learning; There is Nothing Like Absolute Defeat - Try and try until you Succeed.

No comments:

Post a Comment