Lecture 3: If-Else, While loop & Lots of Patterns (Part-1)

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

Комментарии • 2,6 тыс.

  • @sw_2421
    @sw_2421 3 года назад +922

    Teachers with 10-15 years of experience are not able to teach DSA properly but the students graduating are teaching way better than them
    That’s the Indian Education RUclips Revolution

    • @syedusman3324
      @syedusman3324 3 года назад +15

      Agreed

    • @gajendrasharma7038
      @gajendrasharma7038 3 года назад +30

      Not true at all brother there are some of them who are great for exp sourav shukla, Abdul baari and so many who are not teaching online no offense toward your statement tho😅

    • @syedusman3324
      @syedusman3324 3 года назад +6

      @@gajendrasharma7038 Yes, true but still these students are best in making us understand

    • @pratyush2331raj
      @pratyush2331raj 3 года назад +10

      True! That's why institute should hire technical person with more salary than a teacher who can't explain clearly...

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

      ruclips.net/video/QTaiF8N6i3Y/видео.html🙏🏻

  • @Shivkant_sharma19
    @Shivkant_sharma19 3 года назад +37

    Bhaiyya
    It's from depth of the heart.
    " I had watched mostly videos of DSA on you tube..... But your content is boon for us. All doubtful concept get resolve... 🥰🙏🙏

  • @shrutikadorugade7936
    @shrutikadorugade7936 2 года назад +81

    Hello Babbar Bhaiya, I have started this course after you put DSA for Placements video on Love Babbar channel. Now attending 3rd lecture. I must say it's a great course with minute details which we need to know and most importantly it's engaging. Thank you so much for this course 🙂.
    HW answers:
    1. NINEY POSITIVE
    2. 3
    3. LOVE 24
    Upper, Lower or Numeric ?
    int main() {
    char c;
    cout c;
    if (c >= 'a' && c

    • @sudhanshutiwari8174
      @sudhanshutiwari8174 Год назад +4

      But 3 homework question me if condition true hai to kya program else if tak jaega???
      Answe LOVE hoga Ya LOVE 24?

    • @B_Sharanya
      @B_Sharanya Год назад +6

      @Sudhanshu Tiwari
      Haan love true hoga uske baad loop se bahar aa jayenge phir agar tum neeche dekhoge wahan tumhe ek cout

    • @ManojDas-uf1zk
      @ManojDas-uf1zk Год назад

      @@scientistakasha7293 but mere me bhi output 3 hi aa raha hai kyu

    • @ManojDas-uf1zk
      @ManojDas-uf1zk Год назад

      @@scientistakasha7293 kyuki if bala condition true ho gaya isiliye 3 aa raha hai

    • @ManojDas-uf1zk
      @ManojDas-uf1zk Год назад

      Isiliye bo else bala condition excute nahi hoga 3 hi ayega dono me se koi ek hi condition true hoga ya to if ya to else is me if condition true hua so 3 aa raha hai

  • @UpendraYadav-gc3bd
    @UpendraYadav-gc3bd 2 года назад +15

    1->Ninelypositive
    2->3
    3->Love 24

    • @chiklate9797
      @chiklate9797 2 месяца назад +3

      hey it's been 2 years where are you now have you learn DSA and got job or anything ??

    • @piyushchaturvedi5451
      @piyushchaturvedi5451 2 месяца назад +1

      @@chiklate9797

    • @snjv7781
      @snjv7781 Месяц назад

      @@piyushchaturvedi5451 😄

  • @jamuneshsheta7011
    @jamuneshsheta7011 6 месяцев назад +341

    2024 students mark your attendence😂

    • @amit-yg9wl
      @amit-yg9wl 6 месяцев назад +3

      Bro kya mujhe pehle c++ seekhni padegi ki seedha start kr du ??

    • @its_gourav_jii
      @its_gourav_jii 6 месяцев назад +2

      Sidha start kr do..

    • @amit-yg9wl
      @amit-yg9wl 6 месяцев назад +1

      @@its_gourav_jii thnx bro❤

    • @AmitThakur-vf7mm
      @AmitThakur-vf7mm 5 месяцев назад

      Sidha start kar do bro mene bhi direct start hi kiaa h and I thought hame ek din ek lecture ko hi dena chaee abhi for better understanding🎉​@@amit-yg9wl

    • @navnathphadtare8997
      @navnathphadtare8997 5 месяцев назад

      Pata nahi bharat ka kya hoga

  • @prashantmaurya6868
    @prashantmaurya6868 3 года назад +154

    Too much informative blessed to have a teacher like you😇

  • @03_abhishekchoubey42
    @03_abhishekchoubey42 3 года назад +220

    The hardwork you done for this course
    Is really appreciable ❣️

    • @top190
      @top190 2 года назад +1

      I reall agree with you bro

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

      Good evening bhaiya @love babbar bhaiya mai first time computer language ko seekhne ki koshish me hu maine kbhi nhi kiya phle koi bhi computer related language to maine starting ke lectures dekhe hai to mujhe kafi kuchh smjh aaya sb kuchh nhi bhaiya to mai full course complete krne k baad code krne me capable ho skta hu ?

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

      I am giving a proper time

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

      Bhaiya replit me program run hoja rha pr aap kisme krte hai

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

      How to practice and from where ca do ??

  • @Ayush_.
    @Ayush_. 3 года назад +86

    1000%% Beginner friendly Course from The Basics 🔥!! thankyou babbar bhaiya 💖

    • @thetechtime2368
      @thetechtime2368 2 года назад +6

      Hello bro I am first time trying to learn any computer language I don't have any idea about computer languages so it will be helpful for me bcz I have done 3lectures and able to understand everything but not practically like I am not able to relate and what is exact meaning of each term so after some time everything will be crystal clear and will be able to code?? Please suggest me bro bcz even in my school time I don't learn computer ever

    • @Ayush_.
      @Ayush_. 2 года назад +3

      @@thetechtime2368 yeah vro you will be able to write code just practice every question on gfgpractice or leeetcode which he taught in videos . if you write code by yourself you will understand moreeeeee

    • @dshorts9604
      @dshorts9604 Год назад

      ​@@thetechtime2368 bhai please reply love babbar do while loops kab karwayane

  • @nitinsemwal
    @nitinsemwal Год назад +171

    7:39 cout function is defined under namespace "std" in header file iostream.
    24:22 NineyPositive
    24:25 3
    24:30 Love24
    25:49
    Code:-
    #include
    using namespace std;
    int main(){
    char user_input;
    cin >> user_input;
    // int ascii = int(user_input);
    int ascii = user_input;
    if(ascii>=65 && ascii

    • @capilions6767
      @capilions6767 Год назад +3

      Can i join your team?

    • @aparna321
      @aparna321 Год назад +13

      24:30 will only print Love but not 24 as it is if-else and not multiple if

    • @aniketmehtaiitmandi6278
      @aniketmehtaiitmandi6278 Год назад +5

      @@aparna321 But see after the if , else-if and else block there is cout

    • @aparna321
      @aparna321 Год назад +1

      ​@@aniketmehtaiitmandi6278 yes right, my mistake it was. I thought it was inside else block

    • @nehadhruw24
      @nehadhruw24 Год назад +2

      @@aniketmehtaiitmandi6278 i still get it should print lovely also right? because a==24
      can you explain

  • @govindsuryavanshi6653
    @govindsuryavanshi6653 Год назад +6

    Greatest ever DSA series to exist on youtube .Your contribution will be remembered. You're God of DSA for us🙇‍♂

  • @atri578
    @atri578 3 года назад +121

    #include is a preprocessor directive that is processed before compilation of our program and is a file for input and output operations... this statement includes the contents of the iostream file into our program.

    • @LoveShashikanta
      @LoveShashikanta 3 года назад +5

      we can also write stdio.h in place of iostream i think in c language we can write that

    • @Soumyadeep_2107
      @Soumyadeep_2107 3 года назад +5

      @@LoveShashikanta yeah in C we include stdio.h

    • @nabiluddin8605
      @nabiluddin8605 2 года назад +1

      @@LoveShashikanta Yupp! we can write most of the c language code in cpp

  • @singhparth2210
    @singhparth2210 3 года назад +72

    Literally I was waiting, since 3 pm, thank you bhaiya for such hard work

    • @singhparth2210
      @singhparth2210 3 года назад +9

      Bhaiya you are my inspiration my family is facing some hard times, I will be grab a handsome placement and one I day I will meet you bhaiya 😄😄😄

    • @ujalavarshney480
      @ujalavarshney480 3 года назад +2

      bade veele ho yaar

    • @singhparth2210
      @singhparth2210 3 года назад

      @@ujalavarshney480 bhai iitian huna 🔥🔥🔥🔥

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

      @@singhparth2210 oh achha tabhi velle ho🤣

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

      @@rudripancholifc bhai mera tho PayPal me ho gaya ab vella ni hu 😎😎

  • @nikhiljaiswal9479
    @nikhiljaiswal9479 2 года назад +5

    babbar bhai aap hi last ummid bache the.... thanks for this amazing series and i appreciate all your hardwork towards it

  • @RajaKumar-tj1kh
    @RajaKumar-tj1kh Год назад +4

    Since I started my programing journey I never used while loop, Thanks to you for such great explanation.

  • @mainuddin35289
    @mainuddin35289 Год назад +30

    char ch;
    cin>>ch;
    if(ch>='A'&& ch

  • @harpreetbansal7972
    @harpreetbansal7972 2 года назад +9

    33:17
    Sum of 1, 2, 3, 4, 5
    #include
    using namespace std;
    int main()
    {
    int num;
    coutnum;

    int i = 1;
    int sum = 0;

    while(i

  • @venkatrajach6898
    @venkatrajach6898 3 года назад +6

    Another reason to revise DSA again!!!!! enjoying the course and commenting for better reach!!!!

  • @PranavDeshmukh9921
    @PranavDeshmukh9921 Год назад +2

    I have seen lots of you tube channel for this type content , but everyone cover only program and that teaching goes over my head. Otherwise you are teaching method is good 😍😍

  • @RukhsarIdrisi-t2m
    @RukhsarIdrisi-t2m 9 месяцев назад +1

    Babbar bhaiya you are great teacher 😀🤩..you are teaching better than my college teachers,befor watching this video l was confused about DSA but now l m able to understand

  • @ritwikthakur2000
    @ritwikthakur2000 3 года назад +10

    Everyone should start this dsa course. so much effort and hard work is being put by bhaiya

  • @sarcasm3594
    @sarcasm3594 3 года назад +7

    i watched first two lecture and i completed homework . thank you love bhayia. your sacrifices donot go unnoticed. i an waiting lecture three yesterday

  • @prashantmaurya6868
    @prashantmaurya6868 3 года назад +57

    7:14 HW
    Ans-> We use header files so that we can use built in functions like - cout and cin because these functions are declared in the header files.

  • @lovespread1413
    @lovespread1413 Год назад +1

    Bhai Dil se thank you aapko aapne ise free of cost provide karaya ❤️❤️
    Waise paise lagane ke baad bhi aisa course nhi mill sakta thank you so much Bhai 💯💯

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

    24:25
    1) NINEY
    2)cout

  • @harpreetbansal7972
    @harpreetbansal7972 2 года назад +27

    7:14
    We include this header file i.e. #inlcude
    because in this header file cout and cin are already defined
    cout is basically use for print
    cin is basically use for read

    • @monalisatpute8946
      @monalisatpute8946 2 года назад +5

      Cout and cin is not defined in header files .
      It's only declare in that
      Defined in library files

    • @sandeep2702
      @sandeep2702 Год назад

      ​@@monalisatpute8946explain again

  • @aman23_5
    @aman23_5 3 года назад +22

    This is my favourite channel. I especially like it when you explain everything so nicely. I wish you a lot of success with the channel and happy life.

  • @aniketashis670
    @aniketashis670 3 года назад +444

    Pls do black screen with white or yellow pen and I am enjoying the course ❤️🔥

    • @yashi5698
      @yashi5698 3 года назад +24

      Bhaiya said he will doing after 5-6 video

    • @jagankumarpatra
      @jagankumarpatra 2 года назад +1

      Ok

    • @AliHassan-mo8wc
      @AliHassan-mo8wc 2 года назад +2

      bro ye lovebabbar bhai ne jo vs code ka jis trha se setup kia hua hai wo kese kia hai ap smja skty ho

    • @ritikraushan4595
      @ritikraushan4595 2 года назад +1

      @@yashi5698 e

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

      Are kuch Lage ki nahi samajh a rHa tonus problem ko yt par search karlo settings fix karne ki vid aa jaegi​@@AliHassan-mo8wc

  • @RupeshKumar-ov5rt
    @RupeshKumar-ov5rt 2 года назад +13

    Thank you for all that you do. Your hard work doesn't go unnoticed. You're appreciated! thanks bhaiya 🥰

  • @sidhantyadav1790
    @sidhantyadav1790 Год назад +15

    I am gonna start this series from today(16th april 2023 1854) and swear to do atleast one video in one day, will comment start and end time everyday after completing the video so I can keep myself accountable. kudos and best of luck. Lets do this

    • @ankurrathod335
      @ankurrathod335 Год назад +1

      kaha tk pahuche janab

    • @bugzzz4u
      @bugzzz4u Год назад +1

      whats the status bro.. motivate me

    • @rishu4225
      @rishu4225 Год назад +1

      ​@@bugzzz4u
      Was using this account
      Got stuck at linked list due to personal reasons
      Will start again from tommorow 10 jul monday

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

      @@rishu4225 have u completed ?

  • @rachitchaudhary_
    @rachitchaudhary_ 3 года назад +48

    1.#include is used for taking input and output i.e; for 'cin' and 'cout'
    2. Out of different namespaces select cout of std namespace

  • @gurjinderdhiman9773
    @gurjinderdhiman9773 3 года назад +10

    Loving this course so much!!

  • @TechUprise-by-Jyoti
    @TechUprise-by-Jyoti 3 года назад +19

    Thank you so much bhaiya! No one explains these basic concepts so deeply and nicely😀🔥😇

  • @engineeringprojectbyrushik7915
    @engineeringprojectbyrushik7915 3 года назад +94

    output question homework LECTURE 3:-
    24:27 output:-
    1]the code will give output"NINEY" . the output will work after giving return value to main function.
    2]the code EXPECTED output IS "2".the output will work after giving return value to main function.
    3]the code will give output "Love24" the output will work after giving return value to main function.
    25:26 output:
    #include
    using namespace std;
    int main()
    {
    char ch;
    cout ch;
    if (ch >= 'A' && ch

    • @Himanshusingh-ev7mv
      @Himanshusingh-ev7mv 3 года назад +33

      2) value of a show in output is 3

    • @stzz7562
      @stzz7562 3 года назад

      @@Himanshusingh-ev7mv hn

    • @anuragkaushik739
      @anuragkaushik739 3 года назад +2

      Dear, in 2nd question kindly see the condition given in first if from there it is conclude that a is assigned as value 3 then check == 3 and becomes true...
      Now u get it...if not then actually first given if condition is true ...so compiler have to ignore else part ...
      The answer is in first part

    • @Mb-nr5nz
      @Mb-nr5nz 3 года назад

      Bro why we use two time == or && , why please reply

    • @Mb-nr5nz
      @Mb-nr5nz 3 года назад

      In this code , we don't get digit output when we enter 1-9 Anu digit , i entered 7 and output was uppercase

  • @itsasong320
    @itsasong320 2 года назад +2

    You are the best teacher to learn code .Thanks for giving this level of good content.

  • @shivanigoswami2773
    @shivanigoswami2773 2 года назад +7

    after watching this video , 9 programs completed
    1. program to check -ve and +ve
    2.sum of 1 to n number
    3.sum of 1 to n all even number
    4.program to check prime or not
    5.print upper case , lower case , numeric
    6. 2 pattern program
    7.Program covert Fahrenheit to celsius
    8. convert Celsius to Fahrenheit

  • @madhabendrahazra8513
    @madhabendrahazra8513 3 года назад +7

    really very good quality of teaching. please continue this course ,it will be very helpful for needy students.

  • @samarthnawale2466
    @samarthnawale2466 3 года назад +18

    starting this dsa course after 1 month and I'm late, but I'm enjoying and understanding this as a beginner. Really a great playlist

    • @dshorts9604
      @dshorts9604 Год назад +1

      bhai please reply love babbar do while loops kab karwayane

    • @3dsmaxmaya244
      @3dsmaxmaya244 Год назад

      @@dshorts9604
      number from 1 to 10
      int i = 1;
      do{
      cout

  • @kunalpal7971
    @kunalpal7971 2 года назад +1

    24:37
    1) NINEY
    2) 2
    3) love24
    ❤️ Enjoy bhaiya ✌️🤩

  • @AasmaniKhazana
    @AasmaniKhazana Год назад +1

    Tons of love for creating such valuable courses which are better than paid courses❤❤❤

  • @deepikasharma9812
    @deepikasharma9812 3 года назад +8

    I never commented on u tube but this is the first tym. Thank u sir u are the blessing for 3-tier students BTW best personality I ever seen😝

    • @SUNNYSINGH-qj7lb
      @SUNNYSINGH-qj7lb 3 года назад +1

      Coding ninja ka course le lo kya main basics with ds algo c++???

    • @pratyush2331raj
      @pratyush2331raj 3 года назад +1

      @@SUNNYSINGH-qj7lb haan maine v suna hai uska badhiyaan h
      Agar afford kr skte ho to lelo

    • @SUNNYSINGH-qj7lb
      @SUNNYSINGH-qj7lb 3 года назад

      @@pratyush2331raj tumne liya hai kus

    • @pratyush2331raj
      @pratyush2331raj 3 года назад +1

      @@SUNNYSINGH-qj7lb nahi bhai mai RUclips se hi kr lunga

    • @SUNNYSINGH-qj7lb
      @SUNNYSINGH-qj7lb 3 года назад

      @@pratyush2331raj kaun se channel se ds algo kar rhe ho

  • @hutayarbagare3611
    @hutayarbagare3611 3 года назад +6

    Amazing bhaiyya
    It would be easy to understand if have taken variable names as row and col in pattern questions.
    Best course on DSA bhaiyya..
    Please don't discontinue this course.
    Thank you so much!!
    Efforts really appreciated

    • @oppoplayer7203
      @oppoplayer7203 3 года назад +1

      Can we do competitive programming together if you like then please give me your contact number

  • @mohitraj1995
    @mohitraj1995 2 года назад +105

    #include
    using namespace std;
    int main()
    {
    char ch ;
    cout

    • @BtechWali
      @BtechWali Год назад

      bro o/p nh aarha... kyu

    • @nurtruth404
      @nurtruth404 Год назад +3

      This code is absolute correct i tried it works properly .@@BtechWali

    • @Geek_Sings
      @Geek_Sings Год назад +1

      @@nurtruth404 i wanted to know why, when ch(which is character) compared with an integer doesn't give an error, please help

    • @adilahmed7452
      @adilahmed7452 Год назад +3

      ​@@Geek_Singscharacter can contain only one byte and when you give more than one bye then it will type cast it hence it will take its ASCII value like 97 as 'a'

    • @surajthakur9062
      @surajthakur9062 Год назад +2

      @@nurtruth404 Because ch variable break down into asicc value than it break down into binary and every variable is store in the memory on level of binary that's why

  • @HuzaifaKhan-iy5qj
    @HuzaifaKhan-iy5qj Год назад +2

    is the c++ library that has the definition of i/o functions and namespce std is an standard libray that controls the flow of identifiers.

  • @Hariombhandari583
    @Hariombhandari583 Год назад +1

    I am blessed to have a teacher like you

  • @deepakverma7055
    @deepakverma7055 2 года назад +5

    nothing to say i just wanna thank you bhaiya for everything you are doing for us. ❤

  • @nikhilrichhariya6517
    @nikhilrichhariya6517 3 года назад +14

    7:30 #include is used to import a file which is iostream which is used to get input and output and there are diffrent namespaces , and here we are using standard namespace.

  • @user-ue5dl1rg9d
    @user-ue5dl1rg9d 3 года назад +6

    24:27 output will be NINEYPOSITIVE
    2nd que-- o/p is 3
    3rd que-- o/p is Love24

    • @Abhay-ge7fx
      @Abhay-ge7fx 3 года назад +3

      @Harpreet Singh in if condition ((a=3)==b)
      First inner bracket solve i.e we assign 3 to a, so our value of a is 3 now.
      So now our condition become like this
      If(a==b)
      Because 3 already assigned to a
      So now when we compare a and b
      Both are equal 3=3 so our condition is true so we print value of a i.e 3

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

      how love 24 came please explain

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

      @@meghabhutada8756 we are printing " a " at last. (Check line 18 )

  • @ankushladani496
    @ankushladani496 2 года назад +1

    Started This series again from scratch and I will complete whole series by summer vacation for sure.

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

      Bro November me konsi winter vacation hoti hai?

  • @shradhan
    @shradhan 2 года назад +2

    Output
    1.nineypositive
    2.3
    3.Lovelovely

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

      3rd is wrong. Do check it again.

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

      @@karantodkar8251 lovelovely hi toh aayega

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

      @@karantodkar8251 24 kahan aayega... Sab ne kiyon likha hai wo

  • @shreyraj1816
    @shreyraj1816 3 года назад +15

    7:36 : #include is written to fetch a header that includes all the functions of a particular utility, some functions are written in more than 1 namespace and so we need to specify that which namespace are we using hence here we use "std"

  • @soorajmishra6845
    @soorajmishra6845 2 года назад +5

    Each and every thing was clear from this lecture. Thank you Bhaiya.

  • @suruchiagarwal1404
    @suruchiagarwal1404 3 года назад +4

    Your way of teaching is great and every topic is explained nicely
    Thankyou bhaiya for DSA series
    I loved it

  • @suvendubehera6447
    @suvendubehera6447 Год назад

    Bhai kal raat ko aapka yeh fahrenheit to celcius wala home work solve Kiya mujhe kareeb 1 ghanta laga usko while loop mein karne ke liye but finally I did it 🤟🤟. Very good course, keep up the good work 👏

  • @yash_sonii
    @yash_sonii Год назад +1

    agar aap sabi lecture k notes bhe upload kr 2 tho mujhe nhi lagta ki sayad he aap jaisa dsa course pure youtube pr khi hoga 🙂🙂

    • @ankit2023
      @ankit2023 Год назад +1

      Discription cheak kar bhai waha per ha notes ka link

    • @yash_sonii
      @yash_sonii Год назад

      @@ankit2023 nhi hai bhai only kuch he vidoe k hai

  • @mayank_kushwah
    @mayank_kushwah 2 года назад +71

    You can use CTRL + C to terminate a running program
    PS: May help when you run a infinite loop or something that you didn't wish to run

  • @iampuskarbharti
    @iampuskarbharti 3 года назад +7

    Loving this course 😍

  • @gauravbanerjee2898
    @gauravbanerjee2898 2 года назад +9

    24:26 Output of the problems
    Q1-> NINEYPOSITIVE
    Q2-> 3
    Q3-> Love

  • @reaper9112
    @reaper9112 6 месяцев назад

    in the prime number example if we use a bool instead of printing it out every time we can later show if the number is prime or not without much change in code
    int a;
    cin >> a ;
    int b = 2;
    bool prime = true ;
    while (a>b) {
    if(a%b == 0){
    prime = false;
    }
    }
    if (prime){
    cout

    • @SpaceShip933
      @SpaceShip933 5 месяцев назад

      Will u not updated the value of b in while loop

  • @tusharsinha4588
    @tusharsinha4588 2 года назад +1

    int main()
    int i=1;
    int sum=0;
    coutn;
    while(i

    • @grim_reaper9876
      @grim_reaper9876 8 дней назад +1

      Value of i should be 2 if we are taking even numbers

  • @janhavigautam8076
    @janhavigautam8076 3 года назад +5

    Simplified and great content bhaiya. Thankyou for the hard work :)

    • @skfilmcity5151
      @skfilmcity5151 Год назад +1

      but you should also do hard work ok 👍👍👍

  • @dheerajmehra320
    @dheerajmehra320 2 года назад +58

    what did i learn in this lecture
    1. what are conditional statements
    2. some codes examples
    3. what are while loops and how they work
    4 . two patterns

  • @kanishknayak648
    @kanishknayak648 3 года назад +4

    🔥🔥 I was waiting for this loop class only 😁
    Thanks Bhaiya 🔥

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

    done bhaiya aaj morning me pad liya Too much informative blessed to have a teacher like you

  • @sourabh.jangra
    @sourabh.jangra 2 года назад +50

    Absolutely loving the course Babbar Bhai !! 💯
    1. NINEYPOSITIVE
    2. 3
    3. Love24

    • @xyro6o9
      @xyro6o9 5 месяцев назад +1

      Can you tell me why a is not equal to 2

    • @annudeshmukh
      @annudeshmukh 5 месяцев назад

      Because in the 'if' condition block you are assigning a = 3

  • @Om89999
    @Om89999 Год назад +3

    I really appreciate the hard work you put in making videos Thank Youuuuuu

  • @Comedykechatore
    @Comedykechatore Год назад +4

    Answers of questions at 24:30
    1.Niney positive
    2.3
    3. Love lovely 24❤

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

    1) # include = Iska matlab hota hai ki bhot saare codes already likhe hue hai or jab hume usse use karna hota hai to hum iostream ka use karte hai.
    2) using namespace std = Iska matlab hota hai ki iostream me na data yese hi random nhi hota vo yek yek jagah store hota hai to humara code jis namespace me store hai vha jata hai and use code ko use karne ki permission de deta hai.

  • @udaykulkarni5639
    @udaykulkarni5639 2 года назад +1

    Is it just me who get very positive vibes when he smiles like this 51:36

  • @learn_with_rudraa
    @learn_with_rudraa 2 года назад +6

    timestamp 25:37
    #include
    using namespace std;
    int main(){
    char ch;
    cout

  • @kshitizsingh4851
    @kshitizsingh4851 3 года назад +7

    U r one of the best teacher i have ever studied 🙏🙌🤗

  • @GUNGUNLASTNAME
    @GUNGUNLASTNAME 6 месяцев назад +3

    char ch;
    cout ch;
    if (ch >= 97 && ch

    • @Virajpatil32
      @Virajpatil32 6 месяцев назад

      the numbers assigned in the code is according to the ascii table right?

    • @GUNGUNLASTNAME
      @GUNGUNLASTNAME 6 месяцев назад

      @@Virajpatil32 yes

    • @Virajpatil32
      @Virajpatil32 6 месяцев назад

      @@GUNGUNLASTNAME Thanks bro!

  • @funlearning5989
    @funlearning5989 9 месяцев назад +1

    video completed.....lets see the magic

  • @busylife7870
    @busylife7870 10 месяцев назад +1

    char a;
    cin>>a;
    if(a>=65&&a

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

      but can you do it without using ascii table

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

      @@swapnilsharma1010 yep I know😁

    • @DeepakRajput-qu4ck
      @DeepakRajput-qu4ck 10 месяцев назад

      @@busylife7870 pls post code without ascii

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

      @@DeepakRajput-qu4ck ASCII ke jgah alphabet lelo or no.

  • @sudipkrghosh4976
    @sudipkrghosh4976 3 года назад +10

    I am late for the course.
    But I will definitely complete this course with full effort. 🔥
    Thank You Love bhaiya for the hardwork.

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

      Have you completed the course??

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

      @@abhishekkumarsah9492 Have you completed this course ? 🤣🤣

  • @scoc55vora15
    @scoc55vora15 3 года назад +13

    Homework:1 -
    7:34 #include is written to include the header file which includes the input and output function.
    (we have to include the namespace to tell the compiler that it should use the standard namespace function and #include is used for printing output and taking input from the user).
    OR using namespace std is written because there are many namespaces define already so to know which cout to use in which namespace, we define the standard one
    The name of the function for printing output and taking input is cout and cin.
    2. Out of different namespaces select cout of std namespace
    HOMEWORK:2
    Time-Stamp 24:21
    Answers:-
    1)NINEY Positive
    2) 3
    3) Love24

    HOMEWORK:3
    25:39 -> to check whether the character is uppercase or lowercase or digit
    #include
    using namespace std;
    int main(){
    char ch;
    cin>>ch;
    if(ch>='A' && ch

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

      In home work 3 i have one doubt
      It check condition only for 'a' and 'z' then what about the other characters?
      Please clear my doubt.

    • @15priyanshupratapsingh24
      @15priyanshupratapsingh24 2 года назад

      @@idraksheikh301 compare with ascii values you will get the code

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

      @@15priyanshupratapsingh24 ok thank you sir

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

      In exercise 3 use ASCII values

  • @nityaprakashpattanaik5183
    @nityaprakashpattanaik5183 3 года назад +17

    Q1):
    "#include" is a header file which contains cout and cin function.
    'using namespace std' is written to make the computer understand the code for cout and cin, which is predefined in namespace std. Thats why we need to mention which namespace is used in the program.
    Q2):
    (1) NINEYPOSITIVE
    (2) 3
    (3) Love24
    Q3):
    #include
    using namespace std;
    int main()
    {
    char ch;
    cin>>ch;
    if(ch>='a' && ch

    • @its._ankur
      @its._ankur 3 года назад

      Answer of Part (3) of 2nd question will be
      LoveLovely24
      Because elseif condition is also true

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

      @@its._ankur love24 is correct bro because first condition is true

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

      Lovelovely24 is the answer

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

      @@antusaha6278 did u executed this code?

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

      @@antusaha6278 love24 is right answer

  • @namanjain6144
    @namanjain6144 6 месяцев назад +1

    Completed this lecture on 1 July,2024 Monday at 4:31 PM ....less goo ..maza aaya

  • @pranjalagrawal9107
    @pranjalagrawal9107 3 месяца назад +1

    I am gonna start this series from today(9th september 2024 ) and swear to do atleast one video in one day, will comment start and end time everyday after completing the video so I can keep myself accountable. kudos and best of luck. Lets do this.....like this to remind me of these at every like thankyou
    🥰😍😊😊

    • @KaranKumar-fn9ql
      @KaranKumar-fn9ql 3 месяца назад

      bhai C LANGUAGE TUJHE PAHLE SIKH RKHI H YA DIRECT START KR RHA H

    • @rushi_raut_007_
      @rushi_raut_007_ 3 месяца назад

      @@KaranKumar-fn9ql bhai pahle c++ karle mahi to dikkat aayegi

  • @shivangisrivastava1158
    @shivangisrivastava1158 3 года назад +8

    Very excited to complete this course, pls keep going✌️

  • @aryan5035
    @aryan5035 3 года назад +5

    #Homework
    24:28
    1. NINEY POSITIVE
    2. 2
    3. Love
    25:48 (uppercase,lowercase or number)
    #include
    using namespace std;
    int main(){
    char ch;
    cin>>ch;
    if(ch>=48 && ch

    • @tribhuwanjoshi6485
      @tribhuwanjoshi6485 3 года назад +1

      answer of 2nd question will be 3 cuz we are reassigning the value of a in if condition

    • @aryan5035
      @aryan5035 3 года назад

      @@tribhuwanjoshi6485 yes it should be 3. Thank you.

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

      @@aryan5035 2. 3
      3. Love 24

  • @Fam_Uus
    @Fam_Uus 3 года назад +10

    Love Bhaiya - the awesome content maker. I am expecting to take maximum benefit from your DSA course. Modern day Dronacharya & we are learning coding (modern day weapons) instead or Archery.

  • @bhaikesathpadhaii
    @bhaikesathpadhaii 6 месяцев назад

    24:22 answer NINEY POSITIVE
    24:26 answer 3 as variable a is modified
    24:30 answer LOVE because (The else if and else blocks are not executed because the condition of the first if statement was true, and once an if statement is true, the subsequent else if and else statements are skipped.)

  • @Sohamyoooo
    @Sohamyoooo 5 месяцев назад +3

    25:27 HW CODE
    char ch;
    cout ch;
    if(ch>='A'&&ch

  • @isshasethi8291
    @isshasethi8291 2 года назад +3

    Great session Thanks a lot!

  • @rohanpatil5670
    @rohanpatil5670 3 года назад +17

    H.W 1
    #include is written to include the header file which includes the input and output function.
    using namespace std is written because there are many namespaces define already so to know which cout to use in which namespace, we define the standard one.
    H.W 2
    NINEY
    3
    Love
    H.W 3
    #include
    using namespace std;
    int main() {
    char ch;
    cin >> ch;
    if (ch >= 'A' && ch

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

    ANSWER 25:15
    int main()
    {
    char b;
    cin>>b;
    bool k=isupper(b);
    bool i=islower(b);

    if( k==1){
    cout

  • @leoxse
    @leoxse 8 месяцев назад

    24:43
    Answer is Love because the check that a > 20 then the give the output and exit from the condition

  • @AnishRaj_UEE
    @AnishRaj_UEE 2 года назад +38

    how many people understand ... when he said ' ab aap samajhdar hai" ......

  • @Nandini_U
    @Nandini_U 2 года назад +5

    Thank you for such a good content.🙂

    • @nishchay-y7x
      @nishchay-y7x Год назад

      hii Nandini_U , how you are
      did you complete cource?
      which degree u did by the way

  • @SSLearningHub
    @SSLearningHub 3 года назад +6

    Homework: - 7.34 (we have to include the namespace to tell the compiler that it should use the standard namespace function and #include is used for printing output and taking input from the user). The name of the function for printing output and taking input is cout and cin.
    25.39 -> to check whether the character is uppercase or lowercase or digit
    #include
    using namespace std;
    int main(){
    char ch;
    cin>>ch;
    if(ch>='A' && ch

    • @zostera9107
      @zostera9107 3 года назад

      bro hum seedha esse nehi likh sakte
      && lgana jaruri h ??
      a

    • @Gauravkumar-kc6xh
      @Gauravkumar-kc6xh 3 года назад

      @@zostera9107 likh sakhte h

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

    Best teacher ever ❤🎉

  • @tejindersingh7570
    @tejindersingh7570 2 года назад +2

    Homework Solution(25:53):
    #include
    using namespace std;
    int main(){
    char a;
    a= cin.get();
    if((a>64)&&(a

    • @sourabh.jangra
      @sourabh.jangra 2 года назад

      Hi Tejinder
      1. You can use cin.get() here but I don't think it is necessary as we don't have to take input of Space, Tab or Enter so a normal cin >> a would do the job.
      2. Secondly, try using if - else if block for better readability as told by Love Bhai.
      3. We can use (a >= 'A') && (a 64)&&(a

  • @TikTokProductionsaurav
    @TikTokProductionsaurav 3 года назад +8

    Time Stamp:-24:29
    1) NINEYPOSITIVE
    2) 3
    3) LOVE24

  • @avinashdharme2234
    @avinashdharme2234 3 года назад +8

    25:26
    #include
    using namespace std;
    int main()
    {
    char ch;
    cin >> ch;
    if(ch>= 'a' && ch

  • @AbhiX.007
    @AbhiX.007 2 года назад +40

    HW1:
    We use as a header file because it give access to the user to use functions like cout, cin, etc.
    Since there are many namespaces are present , we use only the standard one.
    HW2:
    NINEYPOSITIVE
    3
    Love24
    HW3:
    int main(){
    char ch;
    cout ch;
    if(ch>='A'&&ch

    • @_ShreyaSingh-wv4qz
      @_ShreyaSingh-wv4qz 2 года назад +1

      where you studying ?

    • @AbhiX.007
      @AbhiX.007 2 года назад

      @@_ShreyaSingh-wv4qz In a college 😂 and you??

    • @_ShreyaSingh-wv4qz
      @_ShreyaSingh-wv4qz 2 года назад

      I know it's a college. I mean name of Institute and it's location

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

      @@_ShreyaSingh-wv4qz Panjab University
      and what about both of you?

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

      HW2 CORRECTION:
      LoveLovely

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

    24:21
    output
    1. niney
    POSITIVE
    2. 2
    3. LOVE
    LOVELY

  • @Tajesh906
    @Tajesh906 2 года назад +1

    answer
    25:15
    char z;
    cout

  • @ankushladani496
    @ankushladani496 3 года назад +6

    We are including header file so that our cout cin function are included in the file
    And we use std namespace right now for our simple functions like write a line

  • @aaryab7370
    @aaryab7370 3 года назад +8

    great video, but one doubt in the question of prime number. How can we get the output in a single line if the number is prime or not prime, unlike what you showed in video? e.g input is 7, I want the output to be "prime". I want to know if it is possible using while loop, if then how?

    • @zackviper1901
      @zackviper1901 2 года назад +2

      Yes its possible.
      int n;
      cin>>n;
      int i=2;
      while(i

  • @nakuljadhav7849
    @nakuljadhav7849 2 года назад +10

    #include
    using namespace std;
    int main()
    {
    char ch;
    coutch;

    if(ch>=97 && ch

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

      If my input is @ then it showing 'This is Numeric'

    • @hUnterrr384
      @hUnterrr384 2 года назад +1

      @@Ved4406 For last else case use else if (ch>=48 && ch=97 && ch