C Program to Print rectangle using Special Symbols
Print the Rectangle using Line and Special Symbols
1 2 3 4 5 6 7 8 9 10 | ▲▲▲▲▲▲▲▲▲▲ ▲--------▲ ▲--------▲ ▲--------▲ ▲--------▲ ▲--------▲ ▲--------▲ ▲--------▲ ▲--------▲ ▲▲▲▲▲▲▲▲▲▲ |
Program :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #include<stdio.h> int main() { int i, j; 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("-"); } } return (0); } |
Note :
- Use (Ctrl+6) Key to Print Pyramid symbol inside Borland C/C++ Compiler
[toggle title=”Download Program”]Download[/toggle]