C++ FOR BEGINNERS (2020) - What is nested for loop, How to Multiplication table PROGRAMMING TUTORIAL

Поділитися
Вставка
  • Опубліковано 18 жов 2024

КОМЕНТАРІ • 56

  • @CodeBeauty
    @CodeBeauty  4 роки тому +22

    📚 Learn how to solve problems and build projects with these Free E-Books ⬇️
    C++ Lambdas e-book - free download here: bit.ly/freeCppE-Book
    Entire Object-Pascal step-by-step guide - free download here: bit.ly/FreeObjectPascalEbook
    🚀📈💻🔥 My Practical Programming Course: www.codebeautyacademy.com/
    Experience the power of practical learning, gain career-ready skills, and start building real applications!
    This is a step-by-step course designed to take you from beginner to expert in no time!
    💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10).
    Use it quickly, because it will be available for a limited time.
    #include
    using namespace std;
    void main()
    {
    //Multiplication table
    for (int i = 1; i

    • @alyssawalker8534
      @alyssawalker8534 3 роки тому +7

      //correction - i *j

    • @alfaori2009
      @alfaori2009 3 роки тому

      How can I contact you directly? I am taking a c++ class and sometimes I find myself struggling with it...

  • @fnuhasham8303
    @fnuhasham8303 Рік тому +3

    I was watching this video as normal but The ending blew up my mind of how we can solve a huge problem from a small piece of code. I really like how you explained the concept.

  • @merveakbudak3622
    @merveakbudak3622 11 місяців тому

    Such a teacher! I am really amazed by the way of explaining complicated subjects and making them so easy to understand. It is very nice to see an intelligent woman with the sense of humour. I would like to thank you so so much.

  • @hurleybanaag6068
    @hurleybanaag6068 Рік тому +1

    Thank you so much. now I know the flow of nested loops.

  • @tebellosephofane9907
    @tebellosephofane9907 2 роки тому +1

    This really made me understand the nested for loop..You're Amazing Saldina😍😍

  • @androvictrayo-dy7eh
    @androvictrayo-dy7eh 4 місяці тому

    Outstanding tutorial, thanks to you nested loop is easily understandable

  • @yaserabd7065
    @yaserabd7065 3 роки тому +1

    I love how relax you are , and how it was easy to explain it

    • @CodeBeauty
      @CodeBeauty  3 роки тому

      🙏💙

    • @yaserabd7065
      @yaserabd7065 3 роки тому

      @@CodeBeauty I am beginner for programming for c++ I got advised to learn c++ and then solve 2000 questions for logic , so my question is which video of your channel should I watch first and which should I watch second , etc….

  • @Flavzz
    @Flavzz 4 роки тому +3

    Nice video, thank you for being very thorough. Much appreciated :)

  • @kelvins9269
    @kelvins9269 2 роки тому

    Using multiplication table to explain really help

  • @yaserabd7065
    @yaserabd7065 3 роки тому +1

    Was cool video , ty dude

  • @ayeshakhadim9808
    @ayeshakhadim9808 3 роки тому

    You are so cool. After your video, its seems like programming is easy, if we do it calmly. Thank you! Subscribed you!

  • @ព្រុំដែនញូ
    @ព្រុំដែនញូ 3 роки тому

    Thank you for you to complete my exercises

  • @monoman4083
    @monoman4083 4 роки тому +1

    Useful example, nicely explained.

  • @SamanaStudentService
    @SamanaStudentService Рік тому

    excellent method

  • @Ayman-Elfky
    @Ayman-Elfky Рік тому

    Thank you saldena, your ara amazing

  • @kushalvadher2423
    @kushalvadher2423 3 роки тому +1

    thanx mam it helps me a lot !!

  • @rudylucas4379
    @rudylucas4379 3 роки тому +2

    Why are you using void main(), instead of int main()? I got an error on my compiler saying that it must return int. Can you explain? Thank you!

  • @Fritz.PlayzZz
    @Fritz.PlayzZz 4 роки тому +1

    Nice 👍
    Learnt some new things ❤️❤️

  • @davidalvarado5714
    @davidalvarado5714 3 роки тому +1

    It help me so much very different from html . thank you

    • @CodeBeauty
      @CodeBeauty  3 роки тому

      Yep, it is. I have a few HTML tutorials on my channel as well, but it is mostly C++ for now 😊

  • @mhdjaseem3195
    @mhdjaseem3195 3 роки тому

    thanks, mam💕💖

  • @prabhjotsaini
    @prabhjotsaini 3 роки тому

    Thank you mam

  • @tomiadventures
    @tomiadventures 3 роки тому

    4 million is a big number to count to. it took someone 89 days to count to 1 million, 16 hours a day. it could easily take a year to count to 4 million. good stuff.

  • @omaristaitia5628
    @omaristaitia5628 3 роки тому

    very nice

  • @manoharsagunthalla9215
    @manoharsagunthalla9215 3 роки тому

    Will you please explain how to print the same tables in horizontal

    • @belia_
      @belia_ 3 роки тому

      To do Horizontal you could try this:
      #include
      using namespace std;
      void main()
      {
      //Multiplication table
      for (int i = 1; i

  • @hussinfardan1066
    @hussinfardan1066 10 місяців тому

    Our teacher, we made j = 11,
    How did j return again = 1?

  • @isaabe8769
    @isaabe8769 2 роки тому

    I found my commonsense!!!

  • @bananmuhammed1441
    @bananmuhammed1441 3 роки тому

    How can I develop the same program that asks the user to give me only even numbers?

    • @shallanrambaran6942
      @shallanrambaran6942 2 роки тому

      Hint: Use the remainder operator (any odd number when divided by 2 always returns a decimal point whereas even numbers never do).

  • @traianbadea7389
    @traianbadea7389 4 роки тому +1

    Thank you for the tutorial is very helpful. I understand c++ due to your explication that is very good.
    I try to mixt the last two lessons in one program. Thank you for your tutorial. All the best.
    #include "pch.h"
    #include
    using namespace std;
    int main()
    {
    cout i;
    cout 10);
    for (int j = 1; j

  • @DavidLopez-vk6gg
    @DavidLopez-vk6gg 4 роки тому

    Hello I am trying to create this one program that's like a store but I am having trouble in line 137 were I have put a while loop that pretty much a lows a customer to edit the amount of the item he wants but I cant seem to figure out hot to end the loop because after they don't want to edit anything anymore I thought I could just change the variable so the loop becomes false and it goes to the else statement but it doesn't work, if you have time for this I would appreciated and if you dont have time i understand.(I will put the whole block of code)
    #include
    using namespace std;
    int main()
    {
    float cookies = 1.50, chocolate = 1.00, milk = 4.50, ruffles = 1.99, cheetos = 1.50, doritos = 2.10, eggs = 4.75, beans = 1.50,
    chicken = 4.99, groundbeef = 4.70, cereal = 3.50, banana = .57, apples = .60, oranges = .66, bread = 1.50, ham = 3.50,
    mayonnaise = 3.25, americancheese = 1.50, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16,
    c17, c18, total, amount, amount1, amount2, amount3, amount4, amount5, amount6, amount7, amount8, amount9, amount10, amount11
    , amount12, amount13, amount14, amount15, amount16, amount17, amount18;
    cout > amount;
    cout amount1;
    cout amount2;
    cout amount3;
    cout amount4;
    cout amount5;
    cout amount6;
    cout amount7;
    cout amount8;
    cout amount9;
    cout amount10;
    cout amount11;
    cout amount12;
    cout amount13;
    cout amount14;
    cout amount15;
    cout amount16;
    cout amount17;
    cout

  • @elliotpostma7718
    @elliotpostma7718 3 роки тому

    I'm trying to do the same thing but using while loop. Right now my program is stopping up 1 * 9 = 9 And won't move on to 2 * 1. What do I need to change to get my program working?
    #include
    using namespace std;
    int main()
    {
    int number, multiplier;
    number = 0;
    multiplier = 0;
    while (number < 10)
    {
    number++;
    while (multiplier < 10)
    {
    cout

    • @40wattstudio41
      @40wattstudio41 Рік тому

      You got multiple problems here. Take a good hard look at what your starting values are for number and multiplier and also consider where those numbers are supposed to stop. The reason why it won't process 2 * 1 is because that cout statement is only processed within the inner loop when the multiplier is < 10 . . . but you are already past 10 and you never reset multiplier so it could loop again.
      Here's my version:
      int number, multiplier;
      number = 0;
      multiplier = 1;
      while (number < 10)
      {
      number++;
      while (multiplier

  • @Ace-cq7jl
    @Ace-cq7jl 4 роки тому +1

    *Kada koristimo nested loop racunar prati kod , u našem slučaju dolazi do 1. for loop (uzima vrijednost i=1) , zatim ulazi u 2. for loop(uzima vrijednost j=1) , pomnoži i ispiše. Nakon toga ne izlazi iz 2. for loop nego samo povećava vrijednost j do one vrijednosti koja je zadata tj. do 10 i tek nakon toga izlazi iz 2. for loop i ponovo se vraća na 1. for loop gdje uzima vrijednost i=2 i tako do kraja.. jesam dobro shvatio?
    *Kojim tokom se stvari odvijaju ukoliko imamo npr. 4 for petlje (ugnijezdene) i nakon sto se 4. petlja zavrsi ,da li racunar cita kod onda od 1. petlje pa sve ponovo ili prednost ima 3. petlja jer je ona najbliza posljednjoj tj. 4.
    Nadam se da ste shvatili haha . LP

    • @CodeBeauty
      @CodeBeauty  4 роки тому +2

      for (int i = 1; i

    • @Ace-cq7jl
      @Ace-cq7jl 4 роки тому +1

      @@CodeBeauty Very good example, nested loops mastered :D

  • @markganus1085
    @markganus1085 3 роки тому

    cool accent. where do you come from code beauty?

  • @hepcastproject9100
    @hepcastproject9100 3 роки тому

    thanks and btw his way you can create a semi rectangular multiplication table tho: (didnt know how to sort better)
    int main()
    {
    system(" color b ");
    int i, j;
    for (j = 1; j

  • @ROYALNIL_SITE
    @ROYALNIL_SITE Рік тому

    very good !🙂
    please make training practical python ,php ,java script !
    practical php laravel frame work & django for python to make store .
    thanks saldina
    #ROYALNIL

  • @DavidLopez-vk6gg
    @DavidLopez-vk6gg 4 роки тому +1

    PART 2 of block of code
    char con, mod, change, lad, op;
    cout con;
    if (con == 'n')
    {
    cout mod;
    while (mod == 'y')
    {
    cout

  • @laxus7764
    @laxus7764 3 роки тому

    in the second loop it should be 10 only..you made it 2000

  • @traianbadea7389
    @traianbadea7389 4 роки тому

    the complete code is here
    #include "pch.h"
    #include
    using namespace std;
    int main()
    {
    cout

  • @imnot9923
    @imnot9923 2 роки тому

    Comment for Algor