Special Programs in C − Pyramid of Stars

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ธ.ค. 2024

ความคิดเห็น •

  • @nitins7103
    @nitins7103 6 ปีที่แล้ว +350

    This tutorial is by far the best on the internet in solving the pyramid problems, so beautifully expressed. Thank you Neso Academy! Brilliant job

    • @SurajKumar-jx4zw
      @SurajKumar-jx4zw 5 ปีที่แล้ว +7

      Bhai kabhi fursat mile to Saurav sukhla sir Ka video dekhna

    • @SaifCSE__
      @SaifCSE__ 4 ปีที่แล้ว +6

      @@SurajKumar-jx4zw dekhkr idhr aaya hu bro
      Yaha depth mei smjhaya gya

    • @daverussell4052
      @daverussell4052 3 ปีที่แล้ว +2

      @@tamil8198 maybe because you dont put the new line character??
      like that cause printf wont automaticly put the
      character

    • @balakrishnabalu3035
      @balakrishnabalu3035 2 ปีที่แล้ว +1

      @@SurajKumar-jx4zw rarattygg

    • @shashinegative9366
      @shashinegative9366 2 ปีที่แล้ว

      if someone feel it dificult try this ....
      int main() {
      int total_rows;
      printf("enter the size of rows
      ");
      scanf("%d",&total_rows);
      for(int rows=1;rows

  • @rajcodes100
    @rajcodes100 5 ปีที่แล้ว +64

    You have literally nailed this concept in true mathematical style - kudos to you sir.

  • @rakeshgain5495
    @rakeshgain5495 4 ปีที่แล้ว +13

    I am an Engineering Student and I found your way of teaching is best to understand all these concept. Excellent Sir !!

  • @mayrah8813
    @mayrah8813 3 ปีที่แล้ว +19

    My uni teacher just handed us a book and said good luck and gives us homework I always come here because you help so much more thank you. 🥰

  • @iamDejaray1
    @iamDejaray1 3 ปีที่แล้ว +16

    This man can really teach. No tutorials on TH-cam beats this, Yes!, None!

  • @rakeshgaddam5739
    @rakeshgaddam5739 4 ปีที่แล้ว +47

    Sir,your explanation is so good that even high school student can also understand. Thankyou sir.

  • @youhub1x
    @youhub1x ปีที่แล้ว +6

    Here we can write
    If( j > (n-i) && j < (n+i) )
    Instead of
    If(j=n+(i-1))

  • @IZALEXZ
    @IZALEXZ 2 ปีที่แล้ว +10

    I rarely comment on anything and this is by far one one the most well made tutorials I have ever watched!

  • @Ankitkumar-bn2bs
    @Ankitkumar-bn2bs 4 ปีที่แล้ว +11

    Hats off ! to your teaching style. Petition to bring your multiple copies into all the schools of India. 🙏

  • @daytrade1013
    @daytrade1013 4 ปีที่แล้ว +25

    It took me a few watches to fully comprehend this, but you are definitely the best at explaining code. I have watched used everything and everyone from freecodecamp and CS50(harvard) to Traversy and WesBos ... Best programming tutor out there .. not even close.. A+++++ thank you!

  • @vietnhatvo8345
    @vietnhatvo8345 2 ปีที่แล้ว +6

    Thanks for the lesson Sir. I have another way to solve the problem as below:
    int main()
    {
    int n=0;
    printf("Input the number of row:");
    scanf("%d", &n);
    for (int i = 1; i = 0; blankspace--)
    {
    printf(" ");
    }
    for (int star = 1; star < 2 * i; star++)
    {
    printf("*");
    }
    printf("
    ");
    }
    return 0;
    }

  • @RishiSingh-dj9ou
    @RishiSingh-dj9ou 4 ปีที่แล้ว +15

    As a beginner i am watching this tutorial (jbki internet par phle se hi freshly prepared tutorials available h jo latest h )but even this content of neso is far far better than those latest tutorial.....❣️❣️❣️🤪🤪

    • @nesoacademy
      @nesoacademy  4 ปีที่แล้ว +6

      Yes, latest has not much to do with these basic courses.

  • @sonalkamble2453
    @sonalkamble2453 3 ปีที่แล้ว +3

    The code is incorrect... you need to initialize i and j =0. Also for the first for loop you need to put for(i =0; i < n; i++)

  • @samrat9197
    @samrat9197 4 ปีที่แล้ว +3

    this is one of the finest channel where you find all the stuff from basics to the in depth level that too for free this is far better than all those white hat jr.It really helped me a lot thank for the entire neso academy team

  • @justcaused6182
    @justcaused6182 4 ปีที่แล้ว +11

    Dude, I usually don't like Indian tutorials, but damn, you are so understandable and you explain very well. I always skipped these kind of tasks because I never understood them. Now I'll never skip it!

    • @HarshaVardhan-kt5uu
      @HarshaVardhan-kt5uu 3 ปีที่แล้ว +1

      which one u likes plz put link here so we can also watch

    • @laskdjf3880
      @laskdjf3880 ปีที่แล้ว +2

      u just did a racism 💀

  • @nithinking1395
    @nithinking1395 2 หลายเดือนก่อน

    A very good explanation on the loop . I've watched like 10 videos for the same thing but none could explain the way u did.great job

  • @devangihprajapati4162
    @devangihprajapati4162 4 ปีที่แล้ว +9

    Sir you are teaching very nicely.
    Your teaching is outstanding and excellent.

  • @ashwinivaidya4183
    @ashwinivaidya4183 ปีที่แล้ว

    In my engg career, after paying to many institute and coching center finally now from Neso academy i got to know and understood better than any of these ... That too free of cost ... Thank you ❤️❤️💯💯

  • @mounikaveeramreddy236
    @mounikaveeramreddy236 5 ปีที่แล้ว +7

    Easiest logic to solve patterns... Thanks to neso academy

  • @okkami676
    @okkami676 2 ปีที่แล้ว +1

    This is by far the BEST EXPLANATION of the pyramid nested loop that I have seen. Thank you SO MUCH, SIR!

  • @pritigohil777
    @pritigohil777 ปีที่แล้ว +4

    Amazing! The way you have simplified things is fantastic.

  • @johnarnold8603
    @johnarnold8603 5 ปีที่แล้ว +6

    In C, the comparison of part of the "for loop" is calculated every pass through the loop. So, the j

  • @anilkumargupta4894
    @anilkumargupta4894 6 ปีที่แล้ว +8

    Clearity of concept of how matrix is used in coding ..... It make quest. Bit easier .😎

  • @yaswanthkosuru
    @yaswanthkosuru 2 ปีที่แล้ว +1

    really amazing finally i tried a another approach

  • @m3dev
    @m3dev 3 ปีที่แล้ว +1

    The best TH-cam channel i have seen ever, thanks buddy for the easy explanation.

  • @rohitkumarverma7258
    @rohitkumarverma7258 ปีที่แล้ว

    this is the best solution of the pyramid problem ,this is really helpul .thanks to the nesso academy for this .

  • @ammulurani8285
    @ammulurani8285 4 ปีที่แล้ว +2

    Finally got it..after so many trials...thanks

  • @asifalam206
    @asifalam206 5 ปีที่แล้ว +4

    Amazing one sir....
    💚 from 🇧🇩

  • @lucasjohn3014
    @lucasjohn3014 4 ปีที่แล้ว +7

    wonderful explanation mathematically.

  • @aruhi8524
    @aruhi8524 2 ปีที่แล้ว

    Thanks because of you I found my first programming language easy and it's my first vedio. Have wishful days.

  • @alejguz1552
    @alejguz1552 4 ปีที่แล้ว +24

    Bro, I wish I had this video 10 years ago when I took my first programming course.. very informative keep it up

    • @elianapathan2034
      @elianapathan2034 3 ปีที่แล้ว +2

      Hey can you tell me how you build your own logic any tips please

  • @AkashR4J
    @AkashR4J 5 ปีที่แล้ว +3

    Sir...from deep heart ...you really make me understand

  • @smritiyadav907
    @smritiyadav907 2 ปีที่แล้ว +11

    OMG This so fabulous .❣ I couldn't to resist my self for comment really the way you are expressing and solve the problems i think a small child can also understand. If all the teachers will taught like this then there will be no existence of mindless people in all over the world.🙇‍♀
    THANK YOU SO MUCH SIR ! 🙌

  • @bscreationvlog300
    @bscreationvlog300 2 ปีที่แล้ว

    It is the best channel for learning
    For dry run every program... thanks so much...
    Sir...

  • @rohitupasani3239
    @rohitupasani3239 9 หลายเดือนก่อน

    I have been confused about this pattern logic for a month I wasn't able to understand it, you explained it in a very easy way thank you so much sir ❤️

  • @vishalyadav067
    @vishalyadav067 3 ปีที่แล้ว

    Love you so much sir , i see alote of TH-cam video about c++ * pattern but no one explain how this nested for loop work , but my doubt is clear after watching this video....👍👍👍👍🙏🙏🙏🙏❤️❤️❤️❤️one of the best teacher for c programming language in the world....

  • @mercnem6855
    @mercnem6855 4 ปีที่แล้ว +31

    Great explanation, but when explaining the placement of the stars shouldn't you have a "
    " line just outside of the second loop? When running as is, all four stars are on the same row.

    • @gargimohanty955
      @gargimohanty955 2 ปีที่แล้ว +1

      exactly!

    • @vikaspanchal6628
      @vikaspanchal6628 2 ปีที่แล้ว +1

      Yes, how to resolve this

    • @gargimohanty955
      @gargimohanty955 2 ปีที่แล้ว +4

      @@vikaspanchal6628 there are two loops right ?
      So you have to place the printf("
      "); out of the second loop but inside the first loop.
      And everything else will stay the same.

    • @carnage_wolfiger
      @carnage_wolfiger 9 หลายเดือนก่อน

      I was going to reply. But when I saw this comment in 3 yr old 💀. btw 10:18 here you can see

  • @mformust6502
    @mformust6502 4 ปีที่แล้ว +1

    the best best best best best best top top top and the most wonderfull video to learn these structure.God bless you sir

  • @renugadevi611
    @renugadevi611 5 ปีที่แล้ว +4

    Wonderfull explanation 👌👌👌👌👌👌👏👏👏👏

  • @excitedbox5705
    @excitedbox5705 5 ปีที่แล้ว +1

    You could also print n-(i+1) spaces and print i+n-spaces stars. And increment i. That way you can use a for loops like you use in your first example. First you have 4-1 so print 3 spaces and 4-3 spaces is 1 star. Increment i to 1 and you have 4-2 so print 2 spaces and n+1 is 5, -2 spaces is 3 stars. increment i again and so on.

  • @luthandoguleni8100
    @luthandoguleni8100 5 ปีที่แล้ว +1

    neso iike your channel you are a good teacher

  • @Shanmukha19
    @Shanmukha19 3 ปีที่แล้ว +4

    Hats off to your explanation.
    What a great lecture loved it.
    Thanks a lot.

  • @bjr816
    @bjr816 4 ปีที่แล้ว +2

    I had to learn this in cpp and java and yet I had to come to CProgramming video to understand it lol. It all makes sense now.

  • @tomidebbie2078
    @tomidebbie2078 2 ปีที่แล้ว

    You’re one of the greatest people in the world

  • @priyankapawar4789
    @priyankapawar4789 5 ปีที่แล้ว +9

    Thank you for explaining with concept of matrix....clear view about the pyramid structure... thank you,

  • @PrashantPatil.
    @PrashantPatil. 4 ปีที่แล้ว +1

    you really great teacher 👍👍👍👍

  • @swagatamchakraborty3352
    @swagatamchakraborty3352 6 ปีที่แล้ว +8

    Excellent solution to this special problem of pyramid of stars! Truly speaking I have never seen such a simplified way of solving this kind of pattern programs. Excellent effort! Just keep it up Neso Academy! Looking forward to many such simplified solutions to other well known pattern programs.

  • @dhavalsatishvyas9160
    @dhavalsatishvyas9160 วันที่ผ่านมา

    Thanks!

  • @pravinnaga3524
    @pravinnaga3524 5 ปีที่แล้ว +14

    Wowwww 😻😻😍 explained neatly nd clearly the concept !! 🖤😍💯😄

  • @ScifiTunnel
    @ScifiTunnel 5 ปีที่แล้ว +5

    n-2+1
    but super simple
    superb ❤️❤️❤️ 🇮🇳

  • @bharathkumars8535
    @bharathkumars8535 4 ปีที่แล้ว +4

    Worthy Channel ! Truely amazing sir. Thanks a lot for your great efforts.

  • @codeforces8729
    @codeforces8729 3 ปีที่แล้ว +5

    Very very well explained I must say bt there should be a new line like below:
    For(i=1;i

  • @roshinisrini227
    @roshinisrini227 2 ปีที่แล้ว

    fall in love with your way of explaining...... just awesome

  • @yadav211
    @yadav211 4 ปีที่แล้ว +1

    Literally man u r an op dude...
    I don't even need any screenshot ...
    U r fire dude 🔥 🔥 🔥

  • @kesanakurthirajesh143
    @kesanakurthirajesh143 2 ปีที่แล้ว +1

    nice explanation sir .Thank you..

  • @Ytebtsfanpage
    @Ytebtsfanpage หลายเดือนก่อน

    Amazing explanation ever😊 thank you sir ❤

  • @peymant2341
    @peymant2341 2 ปีที่แล้ว +1

    I was all good until 07:56 . how does writing n-2-1 is going to ACTUALLY relate it to the second column? How does C figures out we are using Matrix?
    {
    int i, j;
    for(i=1;i

  • @brodieboy255
    @brodieboy255 5 ปีที่แล้ว

    Pretty good explanation, but you can do the whole thing with only one loop
    #include
    #include
    int main(void) {
    int n;
    printf("How many rows you want fam?
    ");
    scanf("%d", &n);
    int j = 2*n-1;
    char row[j];
    memset(row, ' ', j);
    for(int i=0; i

  • @sadakalo2818
    @sadakalo2818 6 ปีที่แล้ว +4

    Yes ! This is Beautiful and you are the Master.

  • @vikramsingh-xz8uk
    @vikramsingh-xz8uk 5 ปีที่แล้ว +2

    Excellent bro nice video ....you rocks bro...u got the swag...

  • @alstutorial5075
    @alstutorial5075 3 ปีที่แล้ว

    bro you are literally intelligent you just explain so clearly from other youtuber for that you got subscribed as a reward(0v0)smile

  • @TeluguGamersClub
    @TeluguGamersClub 5 ปีที่แล้ว +2

    Thanq Neso academy you made this one very easy to understand

  • @rayanqeadan9219
    @rayanqeadan9219 4 ปีที่แล้ว +1

    thank u very much i really appreciate it 👌👌

  • @nandinishende750
    @nandinishende750 ปีที่แล้ว

    Your explanation is fabulous..... Thank you so much from Bottom of my heart 💓

  • @dem0aikido
    @dem0aikido 2 ปีที่แล้ว

    Very good explanations. All your videos is a small treasure. Thank you

  • @YuvarajK-ew3cm
    @YuvarajK-ew3cm 6 หลายเดือนก่อน

    Thank you !! this helped me to clear the concept of coordination or placement well explained with boxes !!

  • @naggoudregati
    @naggoudregati ปีที่แล้ว

    This is really superb ❤👏 I love it

  • @nabeelmhd669
    @nabeelmhd669 4 ปีที่แล้ว

    this is the best trick....thankyou for making the job simple !!

  • @pramodkumarsahu7092
    @pramodkumarsahu7092 2 ปีที่แล้ว

    I have watched so many related videos. This is the best!. Thanks a lot for this

  • @surajdhulannavar3696
    @surajdhulannavar3696 5 ปีที่แล้ว +1

    without using if loop we use for loop as for(j=1;j

  • @AFCOE
    @AFCOE ปีที่แล้ว

    🎉🎉🎉cheers! I am ready for my exams sir❤❤❤

  • @Sinister_Rewind
    @Sinister_Rewind 5 ปีที่แล้ว +5

    Wow sir that was awesome, ur explanation is lit !!! I never thought i will get this program in just some mins

  • @HamizAhmed-uk4de
    @HamizAhmed-uk4de 2 หลายเดือนก่อน +1

    sir roasted "u need just little common sense"

  • @nazmapervin7198
    @nazmapervin7198 4 ปีที่แล้ว +1

    This is one of the most helpful videos!!Keep it up!!

  • @Kushaan_1
    @Kushaan_1 3 ปีที่แล้ว

    Lucid explanation of a tricky concept,thank u sir!!

  • @equianodevonte2301
    @equianodevonte2301 4 ปีที่แล้ว

    There's a formula for the number of spaces printed on each row prior to the selected character (totalRows - rowNum). It's fewer lines of code or a simpler implementation.

  • @sakshisrivastava7033
    @sakshisrivastava7033 4 ปีที่แล้ว

    I'm in love with dry run now... And u made this happen sir

  • @kalgikansara7369
    @kalgikansara7369 4 ปีที่แล้ว +1

    Simple explanation 👍

  • @rightwinger2709
    @rightwinger2709 5 ปีที่แล้ว +3

    Extraordinary 👍🏻👍🏻👍🏻

  • @cryscoxx
    @cryscoxx ปีที่แล้ว

    your tutorials are the best. i find myself understand the concept fully from your videos. if there were any other creators appear when i search for something, i'll always put you first, for real! thank you sir 💖

  • @shreyneol1269
    @shreyneol1269 2 ปีที่แล้ว

    sir in vs code, the nested for loop produces different result, it simply prints all the stars in one row. if we wont break the line after the completion of inside for loop, it will simply print on the same line.
    for( int i=1; i

  • @way2rich2
    @way2rich2 9 หลายเดือนก่อน

    awesome stuff sir 👍

  • @manhtranthien612
    @manhtranthien612 2 ปีที่แล้ว

    thanks a lots for your lession, it's really hopefull for me to practice c++ thanks a lots

  • @katm752
    @katm752 2 ปีที่แล้ว

    good explanation simple thank you wish i've found your channel before

  • @Brlitzkreig
    @Brlitzkreig 3 ปีที่แล้ว

    This guy is a genius teacher

  • @muhammadfachri3884
    @muhammadfachri3884 5 ปีที่แล้ว +4

    Clearly explained, good job for making this video, it helps a lot. I hope your channel get a lot of subcribers

  • @ronniesenpai4839
    @ronniesenpai4839 9 หลายเดือนก่อน

    Very well explained! 👏🏻

  • @amr.saad_98
    @amr.saad_98 4 ปีที่แล้ว +1

    Actually this is amazing video.. You made it very easy to understand with your representation

  • @computertreasure8856
    @computertreasure8856 3 ปีที่แล้ว

    Your channel is best ....👌👌
    You are providing complete and clear concept of programming...I am very lucky that I got your channel.... thank you so much sir 🙏🙏 for this content.😊😊

  • @tarunkantighosh287
    @tarunkantighosh287 2 ปีที่แล้ว

    What a nice explanations about pattern! Awesome

  • @abdul772
    @abdul772 ปีที่แล้ว

    @Neso Academy very nice video
    #Neso Academy

  • @insafians5342
    @insafians5342 หลายเดือนก่อน

    Great tutorial 🎉❤

  • @mehwishfatima7136
    @mehwishfatima7136 3 ปีที่แล้ว

    Thankyou for such an easy explanation.

  • @21AniketThakre
    @21AniketThakre 3 ปีที่แล้ว

    Superb explain🤩🤩🤩 thank you sir 💐🎉✨

  • @yogeshs4397
    @yogeshs4397 5 ปีที่แล้ว +1

    Amazing teaching.... I understood everything

  • @imsonecka
    @imsonecka 2 ปีที่แล้ว

    i finally understood.. thank you so much!!

  • @ankammaraochintala2509
    @ankammaraochintala2509 3 ปีที่แล้ว +1

    Super explanation thank sir

  • @avigarg7859
    @avigarg7859 3 ปีที่แล้ว +1

    sir why at 8:31 you are considering n-1 as(n-2)-1? wouldn't it form n-3 as a result

  • @vikassaini1935
    @vikassaini1935 3 ปีที่แล้ว

    You are best in the business