For, While and do-while loops in C++ | C++ Tutorials for Beginners #10

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

Комментарии • 7 тыс.

  • @elsptrue1electrical
    @elsptrue1electrical 10 месяцев назад +57

    #include
    using namespace std;
    int main(){
    int a=6;
    int i=1;
    do{
    cout

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

      💯

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

      Accept

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

      👌💀

    • @Vikash7729-l8o
      @Vikash7729-l8o 3 месяца назад

      //see the magic in the form of 6 table
      #include
      using namespace std;
      int main ()
      {
      int a= 6, i=0, b ;
      do {
      cout

  • @saikrishnareddy2403
    @saikrishnareddy2403 Год назад +76

    For any number, the program for multiplication table
    include
    using namespace std;
    int main()
    {
    int i;
    int n;
    cout

    • @shaurya2667
      @shaurya2667 Год назад +8

      i did in small area same thing -
      #include
      using namespace std;
      int main() {
      long long int value ;
      cout > value;
      int b = 1;
      while (b

    • @shivanksharma9956
      @shivanksharma9956 Год назад +7

      Glt h bhai

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

      @@shivanksharma9956 write to hai @shivank sharma

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

      Pr sir ne to do while loop ka prayog krke tables likhne ko kha tha

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

      wrong ans aayega

  • @a-20-vikas_boarde.26
    @a-20-vikas_boarde.26 Год назад +48

    code for six table:
    #include
    using namespace std;
    int main(){
    // 6 table
    int i=6;
    do{
    cout

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

      Yar ya sahi ha code

    • @SachinKumar-x6s3e
      @SachinKumar-x6s3e 6 месяцев назад +4

      Yes bro ❤

    • @SachinKumar-x6s3e
      @SachinKumar-x6s3e 6 месяцев назад +2

      This is my coding
      #include
      Using namespace std;
      int main(){
      int i=6;
      while (i

    • @SachinKumar-x6s3e
      @SachinKumar-x6s3e 6 месяцев назад +2

      Hello

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

      @@SachinKumar-x6s3e
      Yes bro I know your talent 😉

  • @umesh.7235
    @umesh.7235 10 месяцев назад +9

    You are the best 💚💚.
    I am a beginner and i did it in first try😊😊:
    #include
    using namespace std;
    int main(){
    int num=6,multiplier=1;
    do
    {
    cout

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

      I also do in 1st try

  • @pulastyabhagwat7774
    @pulastyabhagwat7774 Год назад +23

    Challenge accepted and Completed Successfully. Sir you are really great teacher, Before I started learning coding from you I used to find it boring but now I have started to enjoy it!!!!😊😊😊

  • @spdevile9690
    @spdevile9690 3 года назад +354

    Super fun to do that
    # include
    Using namespace std;
    Int main(){
    //For Loop
    Int n =6;
    for( int i=1; i

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

      Bro are you begineer or intermediate?

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

      Awesome bro. All are correct.

    • @vanshtickoo1341
      @vanshtickoo1341 2 года назад +18

      for wale me int n define karne ki zaroorat nahi hai, seedhe cout

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

      @@vanshtickoo1341 vo to while loop mein bhi nahi zaroorat firr , right?

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

      @@vanshtickoo1341 maine bhi aise hi kra bro

  • @__ajaymath6585
    @__ajaymath6585 Год назад +12

    challenged accepted sir int i=1;
    do{
    cout

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

      Bhai mene bhi same code dala he mera error aa rha he 😢

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

      use( ; ) in the last line

  • @arandomyoutubewatcher4308
    @arandomyoutubewatcher4308 5 месяцев назад +19

    using namespace std;
    int main(){
    cout

    • @Vikash7729-l8o
      @Vikash7729-l8o 3 месяца назад +4

      #include
      using namespace std;
      int main ()
      {
      int a, i=0, b ;
      cout

    • @Gamer-dy1bn
      @Gamer-dy1bn 2 месяца назад

      #include
      using namespace std;
      int main() {
      int i=23;
      int j=1;
      while(j

  • @gSquare67
    @gSquare67 Год назад +7

    using for loop.table of 6
    #include
    using namespace std;
    int main(){
    for (int i = 1; i

    • @Messi-cx6dw
      @Messi-cx6dw 8 месяцев назад

      false

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

      @@Messi-cx6dw how

    • @Messi-cx6dw
      @Messi-cx6dw 8 месяцев назад

      #include
      using namespace std;
      int main(){
      int t =6;
      for(int i =1; i

  • @amaraqureshi2099
    @amaraqureshi2099 3 года назад +42

    Harry Bhai kindly nested loop ko explain kr dain in c++. Insahllah soon you will get 1 million subscriber. love from Pakistan.

  • @viplovekaithwas5816
    @viplovekaithwas5816 2 года назад +15

    Here is the code for any table using while loop:
    #include
    using namespace std;
    int main()
    {
    int a;
    couta;
    int i=1;
    while(i

  • @shreyanshsurana100
    @shreyanshsurana100 9 месяцев назад +5

    table of 6
    #include
    using namespace std;
    int main() {
    int i = 6;
    do
    {
    cout

  • @NewbieValorantYT
    @NewbieValorantYT 2 года назад +56

    Challenge accepted and completed sir. You are one of the best educators I have even seen, Thank you so much for all your efforts . Please keep making such wonderful content sir.

  • @tusharpatil9138
    @tusharpatil9138 4 года назад +147

    Challenge accepted
    #include
    using namespace std;
    int main()
    {
    for(int i=1; i

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

      Challenge Accepted

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

      Int main() ka last mai curly bracket nhi lgaya aapne
      Aur shyd se "i

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

      error

    • @samarjeet4967
      @samarjeet4967 3 года назад +3

      @@RahulKumar-no2ks bhai phele tum dekho 😂😂 usne to sahi likha h

    • @RahulKumar-no2ks
      @RahulKumar-no2ks 3 года назад

      @@samarjeet4967its Was Not Me Bro.. A Fucking Boy Has done this😂😂

  • @khizrshaikh9902
    @khizrshaikh9902 3 года назад +130

    18:38
    Challenge Accepted!
    19:07
    // Quick Quiz: write a multiplication table using do-while loop
    // Quick Quiz Solution:
    int i = 1;
    int multiplicationNumber = 6;
    do
    {
    cout

    • @adityaraj-zm7zk
      @adityaraj-zm7zk 3 года назад +1

      Challenge accepted sir

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

      This Code is not the real solution this code gives us value till 66 because it's do while loop when condition comes i=11 it is false in our given condition but it atleast run once.

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

      int i=1;
      do{
      cout

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

      Return 0;
      }
      Thnxx

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

    19:17 Challenge accepted.
    #include
    using namespace std;
    int main(){
    int i=6;
    do
    {
    cout

  • @nishankkose
    @nishankkose 2 года назад +78

    Challenge Accepted:-
    The Code for the Given Challenge is:-
    #include
    #include
    #include
    using namespace std;
    int main()
    {
    int n;
    cout

    • @AhmadKhan-nf4ej
      @AhmadKhan-nf4ej 2 года назад +17

      bhai apko pehle hi ati ha coding ye sab kuch to abhi harry ne sikhaya hi ni jo ap ne kiya

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

      Thanks bro

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

      Sir mera code ye the
      #include
      Using namespace std;
      Int main(){
      cout

    • @AhmadKhan-nf4ej
      @AhmadKhan-nf4ej Год назад

      @@blasty_.0 bhai while ma condition change krdo jitni bar bhi chalana chahtay ho

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

      @@soniverma4927you will get error

  • @kumarkundan5606
    @kumarkundan5606 3 года назад +128

    Challenge accepted & completed also using all the 3 loops, YOUR TEACHING is just so good, I'm just a beginner & I'm understanding each & every code so well.

    • @Shinchan-qr6qw
      @Shinchan-qr6qw 2 года назад +2

      *PROGRAM TO PRINT AN INFINITE TABLE OF ANY NUMBER ENTERED BY USER*
      #include
      using namespace std;
      int main()
      {
      cout

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

      Agr infinite loop m fas gye or mujhe pta nhi tha ctrl+c se stop ho jata h tho mne vs code ki window ko hi close kar diya tho kuch problem tho nhi hogi na, mne code vha se bhi delete kar diya jha ye vs code ki file save hoti h

  • @motivationalTalks810
    @motivationalTalks810 Год назад +34

    Challenge accepted bhaiya ji
    The code for the given Challenge is:-
    #include
    using namespace std;
    int main(){
    int a;
    cout

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

      a*i hoga bhai please correct this

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

      do while sai bola tha

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

      @@gkwithrk4940 shi hai

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

      @@surprise3740 ha output to thik ayega tumhara code se but a*i se format shi ho jayega

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

      i wrote only for table of 6 but now by seing your code i got idea about using it to apply to many different fields

  • @Artificial_Intelligence_Learnr
    @Artificial_Intelligence_Learnr 2 месяца назад

    also with for loop :
    int a = 6;
    for (int i = 1; i

  • @AnjaliKumari-tu2iz
    @AnjaliKumari-tu2iz 2 года назад +5

    # include
    Using namespace std;
    Int main(){
    Cout

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

      You have not used d while..instead you have used For.

  • @jawadshakeel9475
    @jawadshakeel9475 2 года назад +94

    Challenge done after 2 years 😂
    By the way, love you sir! I have just started my CS degree and I wasn't able to understand loops from anyone and its just you who made it possible.

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

      same scenes yaar I didn't understand anything in university

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

      same buddy

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

      @@casper33333 fast University to nhi parhty ?
      😂

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

      @@mohaiman0175 naa yar GU men hun

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

      Private??

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

    #include
    using namespace std;
    int main(){
    for(int i = 1; i

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

      Swep kya hain bhai ?

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

      And bhai ap kon se year main ho collage ke

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

      @@StudentLinker I don’t know
      And I have just passed 12th.
      I did not choose computer in 9th and 11th. Therefore, I haven’t much knowledge about it. I am just learning it because I am interested in it

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

      @@Face_the_Reality same here brother

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

      @@StudentLinker oh really
      Good luck 👍

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

    ////MULTIPLE OF 6////
    #include
    using namespace std;
    int main(){

    for(int i=6;i

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

    Thanks bhaiya.. done with multiplication table of 6 till 10 times. Code given below:
    For Loop:
    // int i;
    // for (i=6; i

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

    Challenge accepted and done with all the 3 loops.
    Thanks sir💖

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

    Just started watching your videos as an absolute beginner. Learning a lot.
    Challenge accepted...👍

  • @adamali785
    @adamali785 2 месяца назад

    Table of SIX using do-while loop :
    #include
    using namespace std;
    int main (){
    int i = 1;
    do {
    cout

  • @aman.saklanii
    @aman.saklanii 9 месяцев назад +3

    le printing all tables using all type of loops ::
    #include
    using namespace std;
    // priting multiplication table using all loops ;
    int main()
    {
    int a, i = 1;
    cout a;
    cout

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

      thanks for the code had some difficulty understand this thanks for using all types of loops

  • @ajnn3750
    @ajnn3750 3 года назад +12

    Challenge accepted. Thankyou sir your teaching style is amazing.

  • @kshitizsinghchauhan7464
    @kshitizsinghchauhan7464 3 года назад +27

    Just started with your lectures and they're really helpful. Nice work

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

    Table of 6 is:
    #include
    using namespace std;
    int main(){
    int a = 6;
    int i = 1;
    do{
    cout

  • @shivansharma1310
    @shivansharma1310 4 года назад +4

    #include
    using namespace std;
    int main() {
    int i=6;
    while(i

  • @ranveerjadhav928
    @ranveerjadhav928 Год назад +27

    challange accepted:
    FOR ALL 3 LOOPS
    #include
    using namespace std;
    int main()
    {
    /*
    TYPE OF LOOPS:
    TERE ARE 3 TYPE OF LOOP
    1.FOR LOOP
    2.WHILE LOOP
    3.DO-WHILE LOOP
    */
    // int i=1;
    // cout

  • @kasturimohapatra9157
    @kasturimohapatra9157 2 года назад +18

    Challenge accepted bhaiya🙏
    Thank you bhaiya for this great video.I am a non computer science student but I understand each and every concept very clearly also learning c at first help me a lot❤️

  • @PragyaSingh-of8zr
    @PragyaSingh-of8zr 4 месяца назад

    for multiplication table of 6 or any other number:
    #include
    using namespace std;
    int main(){
    int n, i;
    coutn;

    for (i=1; i

  • @TheHacksNation
    @TheHacksNation 4 года назад +95

    #include
    using namespace std;
    int main() {
    int i=1;
    1. FOR LOOP
    for(i=0;i

  • @thecomputer1424
    @thecomputer1424 Год назад +8

    Challenge accepted and completed! Nice teaching, keep up the wonderful content.

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

    Challenge Accepted
    #include
    using namespace std;
    int main()
    {
    int i=1;
    do{
    cout

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

    6 Table using While Loops:
    #include
    using namespace std;
    int main(){
    int i=1;
    while(i

  • @yptechtips2420
    @yptechtips2420 Год назад +7

    Challenge accepted 👍
    #include
    using namespace std;
    int main(){
    //This will print the table of six;
    int i = 6;
    do{
    cout

  • @akashmishra4623
    @akashmishra4623 2 года назад +18

    challenge accepted and executed very well by all loops.
    harry bhaiya your teaching is just amazing.

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

    challenge accepted and successfully written the code and loving the course

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

    #include
    using namespace std;
    int main(){
    int i=1,num;
    cin>>num;
    do{
    cout

  • @ezazsarkar125
    @ezazsarkar125 Год назад +72

    // Include Header Files
    #include
    // Using Standard Library
    using namespace std;
    // Main Function
    int main() {
    // Variable Declaration
    int num = 1;
    int table = 6;
    // Do-While Loop
    do
    {
    cout

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

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

      int i=1;
      do{
      cout

    • @aayushhh2617
      @aayushhh2617 9 месяцев назад

      #include
      using namespace std;
      int main(){
      int num,mul,i=1;
      coutnum;
      do{
      mul=num*i;
      cout

    • @aryandhokare1561
      @aryandhokare1561 9 месяцев назад

      #include
      using namespace std;
      int main(){
      int j = 1;
      for (int i = 1; i

    • @royalprince_ff
      @royalprince_ff 9 месяцев назад +2

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

  • @sufiyanmogal1527
    @sufiyanmogal1527 2 года назад +20

    Challenge Completed 👍 Printing the table of 6 using do while loop
    #include
    using namespace std;
    int main(){
    // Printing Table of 6 using do while loop
    int i = 1;
    do{
    cout

  • @digitalyash6252
    @digitalyash6252 2 года назад +77

    // Write a code to print multiple of 6:
    #include
    using namespace std;
    int main(){
    int i=1;
    do{
    cout

  • @gametech91
    @gametech91 2 месяца назад

    1. // The table of any number you enter
    2. #include
    3. using namespace std;
    4. int main(){
    5. int n;
    6. cout

  • @gamingandtechexperto2003
    @gamingandtechexperto2003 8 месяцев назад +4

    challenge accepted and challenge done within 10 minutes
    #include
    using namespace std;
    int main()
    {
    int a = 6, b = 1 ;
    do{
    cout

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

    Challenge accepted and completed too using all the three loops... Now this concepts are getting cleared after going through your lectures..

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

    I used for loop for writing the table. My concept of loops is clear. Thanks.

  • @krushnagaming2438
    @krushnagaming2438 24 дня назад

    Include
    using namespace std;
    Int main
    {
    Int i=1;
    do {
    Cout

  • @shubhayubose345
    @shubhayubose345 3 года назад +710

    cout

    • @dotmashrc
      @dotmashrc 3 года назад +83

      pura code to likhta chomu

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

      @@dotmashrc 😂😂😂

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

      @@dotmashrc 😂😂😂😂😂😂😂😂

    • @anujjaiswal7696
      @anujjaiswal7696 2 года назад +8

      Are subhayau bhay mai anuj hu tere clg ka

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

      @@anujjaiswal7696 hello brother

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

    The course is very cool.👍 But the practice set was wanted. I mean, like any other language, it would have been perfect.
    If there is a practice set, please share it with everyone

  • @AmanKumar-xf6sr
    @AmanKumar-xf6sr 4 года назад +7

    I learnt very much from you Thanks Sir....

  • @soujatyaamitra651
    @soujatyaamitra651 4 месяца назад +1

    #include
    using namespace std;
    int main(){
    for (int i=0; i

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

    Challenge accepted and completed using all three loops and so far it's going smooth.

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

    Challenge Accepted 👍👍
    #include
    using namespace std;
    int main () {
    int i = 1;
    do {
    cout

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

    19.19 i done it thanks for this wonderful course!

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

    # include
    using namespace std;
    int main(){
    int i=6;
    do{
    cout

  • @rajendrajadhav307
    @rajendrajadhav307 4 года назад +12

    U r really helping beginners like me thank you so much do prepare such many courses

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

    #include
    using namespace std;
    int main ()
    {
    //using while loop
    /* int i=1,n=6;
    while(i

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

    Day-08
    Comleted upto Tutorial 10
    10-12-2022
    Loops_In_C++
    Love u harry sir

  • @HarishSharma-fv4fw
    @HarishSharma-fv4fw 2 месяца назад

    #include
    using namespace std;
    int main() {
    int a=6;
    int i=1;
    while(i

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

    Challange accepted! I know its been 1 year but thank you harry bhai
    For (int i =6; i

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

      More optimized solution ..
      int n=6;
      for (i=1;i

    • @AmanSingh-br1nr
      @AmanSingh-br1nr 3 года назад

      bhai ye shyd galat haii compile krte mein chalta jara haii

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

      @@AmanSingh-br1nr that good code

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

      @@shashanktirkey8178 nope actually he forgot to write int i

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

      @@devanshtripathi9082 bhai int i ni likha pahli galti doosri galti n*i k liye variablr bnaya hi ni hai tu toh tune directly kise daal diya usse cout mein woh unknown cheej hai toh shyd value ni dega bhut fault hai bhai dekh le ek baar tu hi

  • @rohankumar6315
    @rohankumar6315 4 года назад +8

    challenge accepted:
    #include
    using namespace std;
    int main(){
    int t=1,n,table=0;
    coutn;
    while(t

  • @abhijitmanna4524
    @abhijitmanna4524 3 года назад +11

    Learning C++ after C makes me understand well and better

  • @muhammadsuhail2364
    @muhammadsuhail2364 8 месяцев назад +1

    #include
    using namespace std ;
    int main ()
    {
    int i=6;
    for ( i=6; i

  • @user-nm4vn9tq5o
    @user-nm4vn9tq5o 3 года назад +23

    Caution:
    13:36 Never put semicolon (;)after the condional statement in while and do while loops, otherwise infinite loop will start playing.And you laptop will start heating.
    I went through this situation while watching this tutorial today.
    A quick fix for this in vs code is : Ctrl+C or Ctrl+Alt+M

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

      I think if you don't increase the variable used in the condition, the loop becomes infinite.

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

      i made that mistake too

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

      Thanks bro

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

      @@sapnewapne For stop the infinite loop we can type crtl + c Is that mean you saying??

    • @Shawn-ff3xg
      @Shawn-ff3xg 2 года назад

      @@nemishdevel8015 yeah

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

    I am from Pakistan but good programming easy method to explain code .INSHALLH I follow this code

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

      Why don't you watch pakistani channel for coding, 😂😂Why you always be dependent on India like qualifying world Cup 2019 pakistan depend upon ind vs eng match😂😂

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

      @@priyanshusharma2144 History repeated bruh ; afg vs nz (smile in pain )🥲

  • @rishitsharma95
    @rishitsharma95 Год назад +7

    18:56
    Made the challenge a little better , I added an input for the number whose table is to be printed by the user:
    #include
    using namespace std;
    void dowhileloop(){
    //A separate function
    int i;
    cout

  • @ZainabIrfan-q4e
    @ZainabIrfan-q4e 18 дней назад

    for(int i=6 ; i

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

    Challenge accepted bhaiya!
    Loving this course and thank you for providing such a quality course for free.
    Edit: Completed the challenge successfully using all three loops.

  • @kajalrajput6085
    @kajalrajput6085 3 года назад +11

    Challenge accepted sir. You have done a good job. Thanks for all the hard work.

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

      Are You pursuing Bsc computer science.?

  • @Mayankkumar-hq6is
    @Mayankkumar-hq6is 3 года назад +44

    15:52 "with great power comes great responsibility"spider man😅

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

    #include
    using namespace std;
    int main()
    {
    int i=1;
    int j=6;
    do{
    int k=i*j;
    cout

  • @pritishmahajan5639
    @pritishmahajan5639 Год назад +14

    #include
    using namespace std;
    int main()
    {
    /*Table of 6*/
    int i;
    for(i=1;i

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

    Challenge accepted & done bro!!
    Your teaching style is best!!! Thank you so much 😃

  • @SonuRaj-co3ss
    @SonuRaj-co3ss 3 года назад +14

    Thankyou so much for your classes ,i m really now motivated for coding . Massive respect for you bro🙏🙏🙏

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

      Agr infinite loop m fas gye or mujhe pta nhi tha ctrl+c se stop ho jata h tho mne vc ko hi close kar diya tho kuch problem tho nhi hogi na, mne vha se bhi delete kar diya jha ye vs code save hota h

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

      ​@@kalpnabelwanshi9567 bhai tere pc faat jayega jaldi se jaldi bhag ja waha se

  • @sunny-853
    @sunny-853 2 месяца назад +1

    Challenge completed
    Int n = 6,i = 1;
    For (i = 1,i

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

    # include
    using namespace std;
    int main() {
    int i=1;
    do {
    cout

  • @kislaykumar3417
    @kislaykumar3417 4 года назад +11

    wow!sir you are on fire 🔥 today.Thanks for this.

  • @atgamingstudios6445
    @atgamingstudios6445 4 года назад +5

    Challenge accepted
    #include
    using namespace std;
    int main(){
    int i=1;
    do{
    cout

  • @jahidalic54s
    @jahidalic54s 4 года назад +12

    // WAP to show the multiplication table of 6
    #include
    using namespace std;
    int main(){
    cout

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

      Ap nay I ko initialize he nai krwaya

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

      @@alishbabibi1493 loop ke variables ke liye initialization ki jaroorat nhi hoti hai.

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

      @@jahidalic54s it will give 0 as the first result. i think it would be i=1.

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

      @@alishbabibi1493 For loop ke andar hi Initialization hai. While aur do-while me pehle initialization karte hai

  • @ajaykumarsingh8862
    @ajaykumarsingh8862 4 года назад +13

    Harry bhai first view ❤️❤️❤️❤️

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

    Sir challenge accepted .Completed the challenge using all the three loops.

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

    #include
    Using namespace std;
    Int main();
    Int i= 6;
    do{
    Cout
    i++60;
    }
    While( i

  • @SAGAR-fx1xz
    @SAGAR-fx1xz 3 года назад +5

    from Mumbai
    challenge accepted and code is also executed
    thank you for this lovey course

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

      what's up bro how's life in mumbai?
      I'm from delhi never been to Maharashtra

  • @prathameshsuryawanshi5017
    @prathameshsuryawanshi5017 4 года назад +7

    Please make detailed course on Data Structures and Algorithm...........

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

      Already playlist is there in this channel for data structure and algorithm

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

      @@rajnandinigorai247 wo comment kb ki thi wo to dekho 👀

  • @PrithviVlogs247
    @PrithviVlogs247 4 года назад +35

    // Printing table of 6 using do while loop
    #include
    using namespace std;
    int main()
    {
    int i = 1;
    do
    {
    cout

    • @debabratasahoo578
      @debabratasahoo578 4 года назад +1

      think this is good

    • @finite7353
      @finite7353 4 года назад +1

      Yes

    • @Aryavart..
      @Aryavart.. 4 года назад +6

      Confusing 🤔🤔
      Simply you can write :- cout line ----->
      cout

    • @dikshajain9845
      @dikshajain9845 4 года назад +6

      cout

    • @Aryavart..
      @Aryavart.. 4 года назад +3

      @@dikshajain9845 give space to see better --->
      cout

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

    6 Table (in do_ while loop in C++)
    #include
    using namespace std;
    int main (){
    int a=6;
    int i=1;
    do{
    cout

  • @BloggerAkhil
    @BloggerAkhil 2 года назад +13

    #include
    using namespace std;
    int main(){
    /*Loops in C++:
    There are three types of loops in C++:
    1. For loop
    2. While Loop
    3. do-While Loop
    */
    /*For loop in C++*/
    // int i=1;
    // cout

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

      Acha Kia Maine lecture dekhne se phle comment pdh liya . Ab pura lecture ka summary mil gya. Ab lecture dekhne ki koi jarurat nhi 😂😂😂

  • @ishitabhattacharyya9882
    @ishitabhattacharyya9882 Год назад +19

    CHALLENGE ACCEPTED
    // MULTIPLICATION TABLE OF 6 USING DO-WHILE LOOP
    #include
    using namespace std;
    int main(){
    int i=0, a=6;
    cout

  • @alien10-r1f
    @alien10-r1f 3 месяца назад

    //using do-while loop:-
    #include
    using namespace std;
    int main(){
    int a = 1, i = 6;
    do
    {
    cout

  • @rajatsahu9313
    @rajatsahu9313 4 года назад +4

    Hey Harry bhaiya.
    Accepted your chalange .
    I wrote table of 6 with for loop .
    Thank you so much for your help.
    This series is very helpful for me .

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

    "With Great Power comes Great Responsibility"

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

    Thanks for your efforts sir .....sir ..i m in 1st year of engineering my subject is cs
    And yours video is very helpful to me ....thank a lot ❤️🙂

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

    Challenge accepted
    # include
    using namespace std;
    int main(){
    int i=1;
    int table =0;
    while (i

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

    challenge Accepted sir ,
    thank you for providing this great series with great teaching

  • @50_srishtishukla18
    @50_srishtishukla18 4 года назад +13

    sir whenever we write a return 0 or return 1 output is same so why we need this variation ?

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

      see actually return 0 is status of sucess

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

      same doubt: why do we need return 0;
      even if we do not write the answer is same

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

      the value is actually returned to the system. if you return 1 the computer learns that something went wrong. returning 0 means the code was completely functional. at this point either works just fine as the return function has no use in your programs as such.