IndiaStudyChannel.com Home page     All Communities

C Language Learners


Make N Number of Triangle Shape In C Language.....guruboy87



My Profile 
  • Sign In
  •  
  • Register

  • Links 
  • Message Center
  •  
  • File Manager
  •  
  • Members
  •  
  • Hall Of Fame
  •  
  • Site Configuration





  • Make N Number of Triangle Shape In C Language.....guruboy87


    Posted Date: 08 Feb 2010      Total Responses: 0

    Posted By: guruboy87       Member Level: Bronze     Points: 1


    /*watch More other Interesting vedios of that in my youtube channel. copy that ..
    ....link...http://www.youtube.com/guruboy87 */


    #include"iostream.h"
    #include"conio.h"
    #include"iomanip.h"
    #include"dos.h"
    void main()
    {

    int a,i,n,k,p=1,j,l;
    clrscr();
    cout<<"\t\t\t\n************** Guruboy87 *************\n"< cout<<"Enter Big number For Big Triangle = ";
    cin>>n;
    cout<<"\n";
    for(i=n;i>0;i--)
    {

    for(j=i;j>=1;j--)
    {

    if(j==1)
    {
    cout<<" *";

    if(p!=1)
    {
    delay(300);
    for(l=p;l>j;l--)
    {
    cout<<" ";
    }
    for(k=1;k<=j;k++)
    {

    cout<<"*";
    }
    }


    }

    else
    {

    cout<<" ";
    }


    }
    cout<<"\n";
    p+=2;
    if(i==1)
    {
    cout<<" ";
    for(int m = 0 ; m < n+1 ; m++)
    {
    delay(300);
    if(m==n/2)
    {
    cout<<" ";
    }
    cout<<"* ";
    }

    }


    }


    getch();


    }

    /* watch More other Interesting vedios of that in my youtube channel. copy that ..
    ....link...http://www.youtube.com/guruboy87 */




    Responses


    No responses found. Be the first to respond and make money from revenue sharing program.

    Post Reply
    You must Sign In to post a response.
    Next : in C/ C++ ..why we are using extern word Explain with example ?
    Previous : compile c program using command promt
    Return to Discussion Forum
    Post New Message
    Category:

    Related Messages