Pattern Programs Tutorial: Part 24 - Pyramid pattern (using if-else)

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 22

  • @nimitkumar5939
    @nimitkumar5939 5 лет назад +3

    Amazing sir, I always find difficulties in dealing with the if-else in the pattern. You cleared all my doubts, thank you sir.

  • @ShivamGupta-ly3sn
    @ShivamGupta-ly3sn 10 месяцев назад

    aap ke jaise aache coder nhi h ham

  • @rabiapervaiz2623
    @rabiapervaiz2623 4 года назад +2

    sir if no. of stars are in even order like if last row has 6 stars what would be the logic of this criteria?

  • @rohit36910
    @rohit36910 5 лет назад +1

    Thanks you much sir

  • @Waqas_Ul_Rehman
    @Waqas_Ul_Rehman 2 года назад

    Thanks

  • @anveshatagore542
    @anveshatagore542 4 года назад

    Iska program kaise lekhe bhai ? Using for loop and if else loop.
    1
    1 1
    1 2 1
    1 3 3 1
    1 4 6 4 1
    There is a space in between every number.
    For last row total no of columns is 9 including spaces

    • @programmer_one
      @programmer_one  4 года назад

      Hi Anvesha, It's a pascal triangle.
      #include
      long fact(int);
      int main()
      {
      int line,i,j;
      printf("Enter the no. of lines: ");
      scanf("%d",&line);
      for(i=0;i

    • @anveshatagore542
      @anveshatagore542 4 года назад

      @@programmer_one Thank you so much bhai.
      But i didnt get this long fact..what is it ?
      And i have visited your website i see that u guys offer few courses. May i know the fees for those courses in my mail anveshatagore@gmail.com.

    • @programmer_one
      @programmer_one  4 года назад

      fact() is the function and it's return type is long. You may also use int of small calculation.
      For training enquiry, fill the details:-
      www.softethics.com/contact.html

  • @sahilsokhal9447
    @sahilsokhal9447 2 года назад

    Esi method se reverse pyramid kese bnega

    • @programmer_one
      @programmer_one  2 года назад

      Here: ruclips.net/video/a4BuYwo2lxo/видео.html

  • @ShivamGupta-ly3sn
    @ShivamGupta-ly3sn 10 месяцев назад

    int n hai , px aur py kya h pura too bataoooo

    • @programmer_one
      @programmer_one  10 месяцев назад

      ruclips.net/video/a4BuYwo2lxo/видео.html
      ruclips.net/video/a4BuYwo2lxo/видео.html

  • @adityasagarr
    @adityasagarr 5 лет назад +1

    can we make a diamond using both

    • @programmer_one
      @programmer_one  5 лет назад

      Yes, Also, refer this tutorial for diamond pattern : ruclips.net/video/QerH_P-FVCY/видео.html

    • @souptikpanja3735
      @souptikpanja3735 4 года назад

      @@programmer_one thank you sir with your help there became another specific way to deal with these problems

  • @VickyKumar-ml5jd
    @VickyKumar-ml5jd 4 года назад

    Soak liked

  • @akcreation2181
    @akcreation2181 4 месяца назад

    Thanks