randomposts
Powered by Blogger.

Colour Triangle Program Code in Turbo C++

No comments

/* Colour Triangle Program Code Here */
#include<iostream.h>___(Don't Missing Syntax required).
#include<conio.h>___(Don't Missing Syntax required).

void main()
{
     int i,j,n;
     clrscr();

     cout<<"Enter Any Value :";___(Don't Missing Syntax required).
     cin>>n;

     for(i=n; i>=1; i--)
     {
           for(j=i; j>=1; j--)
           {
                textcolor(j+500);
                textbackground(j);
                cprintf("*");
           }
           cout<<endl;
     }

getch();
}

Note: *Remove The Sentence on this program ___(Don't Missing Syntax required).

No comments :

Post a Comment