About Me

My photo
Raipur, Chhattisgarh, India
Hi , I am Amit Thakur. I have worked as a QA Engineer for two years and as a Java Developer for one year in NIHILENT TECHNOLOGIES PVT. LTD., Pune.Currently I am working as DEAN (Research & Development) in Bhilai Institute of Technology, Raipur.

Tuesday, September 3, 2013

Print the Rectangle using Line and Special Symbols

▲▲▲▲▲▲▲▲▲▲
▲--------▲
▲--------▲
▲--------▲
▲--------▲
▲--------▲
▲--------▲
▲--------▲
▲--------▲
▲▲▲▲▲▲▲▲▲▲

Program :
#include< stdio.h>
#include<conio.h>
void main()
{
int i,j;
clrscr();
  for(i=0;i<10;i++)
  {
  printf("\n");
     for(j=0;j<10;j++)
     {
      if(i==0 || i==9 || j==0 || j==9 )
          printf("");
      else
          printf("-");
    }
  }
getch();
}
Note :
  • Use (Ctrl+6) Key to Print Pyramid symbol inside Borland C/C++ Compiler

No comments: