Friday, December 19, 2014

Program to print pattern 12345 1234 123 12 1 in C

26 comments:

  1. give me the program of pattern
    123456
    123450
    123400
    123000
    120000
    100000

    ReplyDelete
    Replies
    1. include
      #include

      void main()
      {
      int i, j;
      for(i=5;i>=1;i--)
      {
      for(j=1;j<=i;j++)
      {
      printf("%d",j);
      Printf("%d",6-j);
      }
      printf("\n");
      }

      }

      Delete
  2. give me the progrma of pattern

    1 2 3 4
    2 4 6
    4 6
    6

    ReplyDelete
    Replies
    1. can you give me a prog to have an output like this
      ifx=4
      1234
      123
      12
      1
      ifx=5
      12345
      1234
      123
      12
      ps:the x depends on the user

      Delete
    2. #include
      #include
      int main()
      {
      int i,j,n;
      printf("Enter the number of line you want to print\n");
      scanf("%d",&n);
      for(i=1;i<=n;i++)
      {
      for(j=1;j<=(n+1-i);j++)
      {
      printf("%d ",j);
      }
      printf("\n");
      }
      getch();
      }

      if u have any doubt kindly mail me at yazdans2519@gmail.com

      Delete
  3. This comment has been removed by the author.

    ReplyDelete
  4. Give me flow chart of pattern

    1
    12
    123
    1234
    12345

    ReplyDelete
  5. Give the output
    Row1:1 2 3 4 5
    Row2:1 2 3 4 5
    Row3:1 2 3 4 5

    ReplyDelete
  6. Write a program to get patter
    12345
    1234
    123
    12
    1

    ReplyDelete
  7. give me the pattern
    1234
    123
    12
    1

    ReplyDelete
  8. 12345
    1234
    123
    12
    1
    program for above pattern

    ReplyDelete
  9. 987654
    87654
    7654
    654
    54
    4
    Give me program for that pattern

    ReplyDelete
  10. 45678910
    5978910
    678910
    78910
    8910
    910
    10
    0

    ReplyDelete
  11. 1
    12
    123
    12
    1 for nested loop
    In c language

    ReplyDelete
  12. Pl give me output for
    7
    00
    777
    0000
    77777

    ReplyDelete
  13. #include
    {
    int i,n,j;
    printf(”\n enter number");
    scanf("%d",&n);
    for(i=n;i>=1;i--)
    {
    for(j=i;j>=1;j--)
    Printf(" %d",j);
    Printf("\n ");
    }

    ReplyDelete
  14. hello some bodu help me how to create 5 name of films and set appreciation

    cmd
    ============================
    name of films appreciation

    film 1 10.0
    film 2 3.1
    film 3 6.2
    film 4 7.2
    film 5 2.6


    ReplyDelete
  15. hello some body help me how to create 5 name of films and set appreciation


    i need this output

    cmd
    ============================
    name of films appreciation |
    |
    film 1 10.0 |
    film 2 3.1 |
    film 3 6.2 |
    film 4 7.2 |
    film 5 2.6 |
    ============================

    ReplyDelete
  16. hello some body help me how to create 5 name of films and set appreciation


    i need this output

    cmd
    ============================
    name of films appreciation |
    |
    film 1 10.0|
    film 2 3.1 |
    film 3 6.2 |
    film 4 7.2 |
    film 5 2.6 |
    ============================

    ant fill this with appreciation

    film 1 10.0
    film 4 7.2
    film 3 6.2
    film 2 3.1
    film 5 2.6

    ReplyDelete