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(); }

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