Tuesday, February 23, 2025

Print the Rectangle using Line and Special Symbols





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("▲");    // Use (Ctrl+6) Key to Print Pyramid symbol
     else
    printf("-");
    }
  }
getch();
}

Bookmark & Share

Tags / Keywords : | ,

Stumble
Delicious
Technorati
Twitter
Facebook

0 Comments:

Post a Comment

Your Feedback :This is Growing Site and Your Feedback is important for Us to improve the Site performance & Quality of Content.Feel Free to contact and Please Provide Name & Contact Email

 

Learn C Programming Copyright © 2010 LKart Theme is Designed by Lasantha, Free Blogger Templates