▲▲▲▲▲▲▲▲▲▲ ▲--------▲ ▲--------▲ ▲--------▲ ▲--------▲ ▲--------▲ ▲--------▲ ▲--------▲ ▲--------▲ ▲▲▲▲▲▲▲▲▲▲
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:
Post a Comment