Diamond Pattern in java- Hindi

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

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

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

    Please SUBSCRIBE to get new videos of java tutorials.
    Also LIKE and SHARE if you find it useful.
    Feel free to put your doubts and queries in comment box.

    • @TechnoAyan7
      @TechnoAyan7 6 ปีที่แล้ว

      i dont know why these type of channels have low subscriber
      atleast 1k subscriber should be here

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

      ICSE Paper Wala Haha, thank u so much for this kind reply.

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

    One of the best video to understand the problem and concept. Thank you so much!

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

    Best tutorial on this topic I've ever came across, Thank you so much for this

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

    Best explanation ever in youtube.. thank you, please bring more videos

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

    Thanks for the explanation. I have seen many videos but this is one clearer and easier to understand.

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

    Thanks, you actually simplify how we can use logics. Thanks a lot

  • @DanishKhan-tk3nu
    @DanishKhan-tk3nu 3 ปีที่แล้ว +1

    Superb ma'am ,, God bless you,, now I am going to subscribe your channel.. ♥️

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

    Perfect explanations i have found today...yepeee 👌👌👌🏻🙌🏻🙌🏻

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

    U explained very clearly...ur teaching style is awesome

  • @MandeepKaur-ou4dk
    @MandeepKaur-ou4dk 5 ปีที่แล้ว +1

    Thanks.... now my all doubts are clear....

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

    thanks it was very helpful and well explained

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

    Thanks mam..for good explanation

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

    Now this is called an perfect explanation..................btw I am also Bansal ;)

  • @AhmedAli-sr4pb
    @AhmedAli-sr4pb 3 ปีที่แล้ว

    Love you ma'am. What an explanation. Your teaching skills are remarkable. I am gonna subscribe you and like your video.

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

    Ur teaching is unique in the world

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

    Mam start a class for java begineers

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

    (i*2)-1 is the line where i was stuck thanks mam.

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

    very well explaned

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

    really best understanding video

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

    Very good explanation.

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

    Shortest and Smart code for diamond pattern in just 2 FOR loops..
    Please note code is in c++. You can refer to logic.
    Output verified.
    #include
    #include
    #include
    void main()
    {
    int n,row,col,flag=0;
    printf("Enter Number");
    scanf("%d",&n);
    for(row=1; row>=1; row++)
    {
    for(col=1; col=row)
    printf("*");
    else
    printf(" ");
    }
    printf("
    ");
    if(row==n)
    flag=1;
    if(flag==1)
    row = row-2;
    }
    }

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

    Very nice. Very much understandable. Love from Bangladesh. Go ahead...

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

    You explained very well but You explained one mathematical fact wrong that you typed : 5+1/2=3 Which is absolutely Wrong ❌
    It should be: (5+1)/2=3
    Otherwise,
    Your work is appreciable 🙌
    Thank you 😊 💓

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

    thank you for the help!

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

    thank you ma'am. very well explained.

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

    Thanks Madam... This video is very useful...

    • @gagmansa
      @gagmansa  6 ปีที่แล้ว

      BIJAY KISHORE PATRA you can watch other videos here th-cam.com/channels/4n7Ds_TOgpeWxtjLBQnPOg.html

  • @hiteshrohilla450
    @hiteshrohilla450 6 ปีที่แล้ว

    Superb...….its awesome....I learn this problem very very easy ……..clear all confusion regarding pattern programming...…..thanks a lot

  • @mashupshows2152
    @mashupshows2152 6 ปีที่แล้ว

    Nice method of teaching. ... love from Pakistan

  • @gauravpatil7989
    @gauravpatil7989 6 ปีที่แล้ว

    Super video clear all confusion regarding pattern programming.
    thank u so much..

    • @gagmansa
      @gagmansa  6 ปีที่แล้ว

      Thanks... watch other pattern related videos
      Learn how to print * pattern questions in java Part 1 - Hindi
      th-cam.com/video/keE9NNu4m10/w-d-xo.html
      Learn how to print * pattern questions in java Part 2 - Hindi
      th-cam.com/video/JarOdPjfSRE/w-d-xo.html
      Pyramid Pattern in java (Any number of rows) - Hindi
      th-cam.com/video/4zTSLfdPW_E/w-d-xo.html
      Pascal Triangle Pattern - Hindi
      th-cam.com/video/kJHCPz7pGIs/w-d-xo.html

  • @beingnoushad
    @beingnoushad 6 ปีที่แล้ว

    Thank you so much for the clear and smooth explanation... 👌👌👌

  • @AbhishekSingh-ht1ie
    @AbhishekSingh-ht1ie 6 ปีที่แล้ว +1

    Waaaoow this explaination was superb !!

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

    Excellent 🔥

  • @pratikk.404
    @pratikk.404 3 ปีที่แล้ว

    Thanks a lot

  • @shamirule7965
    @shamirule7965 6 ปีที่แล้ว

    Mam' You are great as well as nice experience in this level...
    i hope you are new videos and other pattern are developed in this channel..
    love you mam, great voice

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

    Really appreciate the content and simple teaching technique. I even recommended to my frnds bcoz its so neat.
    any plans to bring collections framework topics. Or at least algorithms on LinkedList, Hashmap etc? eagerly waiting.

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

    Very well explained. Thank you.

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

    Heloo mam.can u explain this using while loop.plz

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

    Apki voice bohot pyari h

  • @GautamKumar-rx8gr
    @GautamKumar-rx8gr 4 ปีที่แล้ว +1

    Thank u mam

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

    Very well explained.
    Thanks!

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

    Thank you madam..

  • @Arunkumarsurya-m9c
    @Arunkumarsurya-m9c ปีที่แล้ว

    Thank you

  • @KuldeepSingh-mu9zy
    @KuldeepSingh-mu9zy 5 ปีที่แล้ว

    it can be done by giving if-else condition..with this we can print it with only two for loops

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

      We have many ways to solve a problem... 👍

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

    very good explaination mam thnkyou

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

    It works perfect for Odd number but what about Even numbers if we give even number it takes one line less then given even number

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

      I have already mentioned this in the video that it works good for odd number of lines... Please check video again

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

    If possible can u make videos on TCS coding questions mostly ask ...program on mixture of fibnoci and prime no..etc

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

      Sure, but pls allow me some time bcz my schedule is little tight and i get less time for recording ... I'll try to post videos as frequent as i can.
      Fibonacci series th-cam.com/video/HjiBtjBaQxk/w-d-xo.html

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

    Please make video on file creation in java

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

    good tq mam

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

    thanks

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

    Love u. Grt tutorial.

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

    Awesome

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

    Hi mam,
    You are doing well.Any one can understand Easily.mam please make the video for collections.

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

      Sure. Please allow some time.

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

      @@gagmansa okay Mam

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

    बहुत बढ़िया mam

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

    now after coming in class 11 i have understand the logic of pattern

    • @gagmansa
      @gagmansa  6 ปีที่แล้ว

      Thank u so much...

  • @PardeepLabVIEW
    @PardeepLabVIEW 6 ปีที่แล้ว

    Mam ji i have not more word to say ultimate mam ji

  • @tarsemkumarkalra6331
    @tarsemkumarkalra6331 6 ปีที่แล้ว

    mam when i make this program i don't get correct output i get output that diamond (lower part of diamond slips one star right hand side compare to upper part of diamond) please tell me its solution

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

    if we printing a hollow diamond by applying the condition in this pattern its getting fail. If possible, please reply

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

      Every pattern is different , so logics for printing different patterns are also different..
      Share your code ... Let me check the changes required

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

      @@gagmansa ok ,how i will share to you?

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

      Info.gagmansa@gmail.com

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

      @@gagmansa ok

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

    ❤nice

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

    superb 👌👌

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

    Mam logic bnane ka koi topic hai math mein jo usko pehle dekh ke pher hm usko implement kr ske
    Agr topic hai toh naam kya hai uska

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

      By practice only

  • @RanjanKumar-bv6ok
    @RanjanKumar-bv6ok 6 ปีที่แล้ว +1

    NYC explained

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

    Mam Isme space ka for loop ke bad jab print karte hai to bracket me space kyu chodte hai??

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

      Space print krwane ke liye...
      printf function me bracket me jo likhoge whi print hoga.
      Space diya hai to space print hoga..
      .
      Agar hum space nhi denge to sbi * chipak jayenge

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

    Nice

  • @prashankshah9914
    @prashankshah9914 6 ปีที่แล้ว

    this logic is working with all types of patterns ???

    • @gagmansa
      @gagmansa  6 ปีที่แล้ว

      You need to modify little bit for different pattern. It depends what pattern you need to create.
      You can watch these patterns for help
      th-cam.com/video/4zTSLfdPW_E/w-d-xo.html
      th-cam.com/video/keE9NNu4m10/w-d-xo.html
      th-cam.com/video/JarOdPjfSRE/w-d-xo.html

    • @prashankshah9914
      @prashankshah9914 6 ปีที่แล้ว

      1
      1 1
      1 2 1
      1 3 3 1
      1 4 6 4 1
      1 5 10 10 5 1
      please give me logic for this types of pattern or upload videos..

    • @gagmansa
      @gagmansa  6 ปีที่แล้ว

      This pattern is called Pascal's triangle... Just created the video after your query. here is the link... video is quite long but i tried to explain everything. pls review it.
      th-cam.com/video/kJHCPz7pGIs/w-d-xo.html

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

    Mam jaisa aapne kaha vo code to thik chal raha but agar main ...
    mid =lines +int1/2
    Agar ye value main mid me put karta hu to ye even no. Ke liye bhi work kar rhaa hain but yeh no. of lines 9 print karta suppose
    Maine input diya no. Of lines =5 ;
    mid =lines +1/2
    To ise lines to 5 print karni chahiye but ye 9 no. Of lines print kar raha hai that's confusing 😕😵🤔

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

      apka question abhi dekha hai.. sorry for late reply.
      pls share your code at gagmansa12@gmail.com

  • @Anshika0326
    @Anshika0326 6 ปีที่แล้ว

    u r great

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

    Excellent

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

    Thank u

  • @mashupshows2152
    @mashupshows2152 6 ปีที่แล้ว

    Aor odd ky ilawa bi input per diamond bn jata hein...?

    • @gagmansa
      @gagmansa  6 ปีที่แล้ว

      video ke starting me hi mene explain kiyq h ki odd kyun hoti h.. app fir se video starting se dekhe...
      agr apko even lines chahiye apko logic thoda sa modify krna pdega..

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

    perfect

  • @mashupshows2152
    @mashupshows2152 6 ปีที่แล้ว

    Mam lower part mein j ki value 1 denay sy 1 star km print huta hein...... us mein j = 0 ky tou thk huta hein... is mein thora confusion hein... plzz bata do

    • @gagmansa
      @gagmansa  6 ปีที่แล้ว

      aap kon se loop ki baat kr rhe ho lower part mein?
      1 se start krne par loop ek bar kam chlega

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

    vs code me ye code run nh hora hai
    please tell me how can I solve this issue.

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

      apne kon si file bnayi hai.. extension kya hai file ki?

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

    Mam Can you please teach how to code tic tac toe in java without using swings

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

      Don't you want GUI?

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

    awesome

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

    What happens if user enters 6 then it will become 7÷2 =4.5.
    So it is a bug.
    Way to prevent:
    If n mod 2 !=0
    Then n + 1 mod 2

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

      i already mentioned in the beginning that this works in even number of lines... you can do coding if user enters odd number....
      here in this video i m explaining logic and code of diamond pattern only

  • @sachintech9639
    @sachintech9639 6 ปีที่แล้ว

    Mam even value bhi print kr rha hai

    • @gagmansa
      @gagmansa  6 ปีที่แล้ว

      pls clear your question. aap kya puchna chahte ho

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

    nice

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

    Mam last no to Galat aagaya odd no n asker even aagaya 7+1/2

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

    I want this code photo can you please send me?

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

    ye program toh run hi ni hora eclispse mein what can i do now

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

      I hv used Netbeans here... Logic is same for others..
      Ek new project create krke usme class me main methode ye code likhe..

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

    *1
    *1*2
    *1*2*3
    How will he this get done

  • @GauravSharma-kr5oz
    @GauravSharma-kr5oz 3 ปีที่แล้ว

    Aur agar user ne 4 dala to phir ?

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

    if user entered Even number then

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

      Pls watch this video carefully. I hv explained in the beginning of this video that the number of lines should be odd.

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

      @@gagmansa exactly but it is not possible to print even numbers in diamond pattern???

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

      You can print, but it will not be a proper diamond shape.

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

      @@gagmansa Thanks

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

    BODMAS Rule

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

    This program is not executed.

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

      You must be doing something wrong.
      You can share your code at info.gagmansa@gmail.com

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

    Even if i dont know her language i understand what she wants to say/explain🤣😂
    #imafilipina

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

      This is in HINDI language.

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

    hiii

  • @apsshorts2.03
    @apsshorts2.03 5 ปีที่แล้ว

    How to print this pattern
    1
    10
    101
    1010
    10101
    Please help me out

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

      watch this video to understand this pattern...
      th-cam.com/video/keE9NNu4m10/w-d-xo.html
      and take a variable with name before for loop
      int s = 1;
      use this variable instead of * and after print statement change its value..
      if(s==1){
      s=0; }
      else if (s==0) {
      s=1; }
      i will upload video soon in few days

  • @RAHULYADAV-jl5fx
    @RAHULYADAV-jl5fx 6 ปีที่แล้ว

    Mam how to print?
    1
    1 2
    1 2 3

    • @RAHULYADAV-jl5fx
      @RAHULYADAV-jl5fx 6 ปีที่แล้ว

      And
      A
      A B
      A B C
      A B C D

    • @gagmansa
      @gagmansa  6 ปีที่แล้ว

      take one more variable and initialize it with 1.
      print that variable in for loop and increment by 1...

    • @gagmansa
      @gagmansa  6 ปีที่แล้ว

      int num=1;
      for(j=0; j

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

    Did she really have to do this in Hindi!? Some of us don't understand a word of Hindi. How is this going to be useful to us?

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

    Thanks mam

  • @GauravSharma-kr5oz
    @GauravSharma-kr5oz 3 ปีที่แล้ว

    Aur agar user ne 4 dala to phir ?

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

      Aap even and odd numbers enter krwa kr if else use kr skte hai..even number enter kiya hai to you can display a message that please enter ode number..
      Even number me diamond ban jayega but not perfect diamond shape.

  • @vinaykushwaha9919
    @vinaykushwaha9919 6 ปีที่แล้ว

    thank you mam