2TRIANGL - else printf(" "); }...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
//TWO TRIANGLE // / #include<stdio.h> #include<conio.h> void main(void) { int a,b; clrscr(); for(a=1;a<=7;a++) { for(b=1;b<=7;b++) { if(a+b<=8) printf("%c ",'a'+b-1);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: else printf(&quot; &quot;); } for(b=6;b&gt;=1;b--) { if(a+b&lt;=8) printf(&quot;%c &quot;,'a'+b-1); else printf(&quot; &quot;); } printf(&quot;\n&quot;); } getch(); }...
View Full Document

Ask a homework question - tutors are online