1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help me friends..

Discussion in 'C' started by Fazil RF, Feb 11, 2013.

  1. Fazil RF

    Fazil RF New Member

    Joined:
    Jan 7, 2013
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Student
    Location:
    Erode,Tamil nadu
    C prog to print the no like this..

    1
    2 3
    4 5 6
    7 8 9 10
    Reply me friends &also admin :)
     
  2. karan patel

    karan patel New Member

    Joined:
    Mar 25, 2013
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    #include<stdio.h>
    #include<conio.h>
    void main()
    {
     
  3. karan patel

    karan patel New Member

    Joined:
    Mar 25, 2013
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Code:
    #include<stdio.h>
    #include<conio.h>
    void main()
    {
        int a=0,i,j;
        clrscr();
        [B][FONT="Arial Narrow"]for(i=0;i<=4;i++)
        {       
                for(j=0;j<=i;j++)
                {
                        a++;
                        printf("%d",a);
                }
                printf("\n");
        }[/FONT][/B]
    getch();
    }
     
  4. DRK

    DRK New Member

    Joined:
    Apr 13, 2012
    Messages:
    44
    Likes Received:
    3
    Trophy Points:
    0
    Functions like clrscr or getch are very old and not recommended to use.
     
  5. Fazil RF

    Fazil RF New Member

    Joined:
    Jan 7, 2013
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Student
    Location:
    Erode,Tamil nadu
    thank you..
     

Share This Page