C++ Video Tutorial | CPP IF ELSE | Conditional Statement

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

Комментарии • 87

  • @evilbogeyman5953
    @evilbogeyman5953 6 лет назад +14

    I was watching the video then i paused at 4:11 and started doing by myself and i made this
    int age = 17;
    cin>>age;
    if( age

    • @LearningLad
      @LearningLad  6 лет назад +2

      Cool
      You can use else instead of 2nd if statement

    • @heyahey1957
      @heyahey1957 5 лет назад

      Hey bro ı thought to cout the age how ı will want from user 🧐 help please 🙃

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

      By using || or && operators in one if statement You can execute two or more conditions

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

      @@heyahey1957 first, define a integer variable (int), say "age", then do this :
      cin >>age;
      This will take the integer value of "age" variable from the user.

  • @syedshoaibroshan547
    @syedshoaibroshan547 9 лет назад +4

    Amm in school I found it lame but then ended up loving it i actually started doing stuff in my house itself cool man!!! Ty Anil sir

  • @selwyntayong7286
    @selwyntayong7286 6 лет назад +4

    Great man ive learned a lot more videos like this more blessings to ur channel

  • @himotiwari325
    @himotiwari325 8 лет назад +1

    thankz sir, it ur veduos helped me to understand c++ more efficiently, nd now in a lot more r interested in learning more.

  • @himannamdari7375
    @himannamdari7375 7 лет назад +4

    TNx for your good video but I think it will be better if you can use some of the previous code like "cin

    • @LearningLad
      @LearningLad  7 лет назад

      ok.
      will consider that for upcoming video's
      Keep Learning :)

  • @Away_from_routine_0430
    @Away_from_routine_0430 8 лет назад +1

    thank u sir it was very help full for my job interview

  • @shakilahmadahmad2123
    @shakilahmadahmad2123 6 лет назад +5

    More User Friendly
    #include
    int main()
    {
    int age;
    cout>age;
    if(age

  • @77seban
    @77seban 7 лет назад +3

    It is 2017 and i am learning C++ from this course Thanks a lot.

  • @heyahey1957
    @heyahey1957 5 лет назад +1

    Teacher thank you from Turkey 😊👋👋

  • @moudytech577
    @moudytech577 5 лет назад +3

    It's good totorial but it could be awesome if you use
    cin
    So that I so a person can enter
    His or her age directly on black screen and there is no need to change directly from your editer
    But in all
    I am really your totorial with your good explanation you makes to be easily understand it, thanks for that god bless you for your time to do this totorial

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

    It was very interesting. After making this project i played this game with my family members LOL

  • @deepaktalekar
    @deepaktalekar 9 лет назад +2

    thank u.... so much..... good way of learning..

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

    Im just in video 15 its fantastic

  • @muhammadibtesam387
    @muhammadibtesam387 7 лет назад +1

    thanks sir,i leran who to write if and else statement..........thanks sir😊😊😊

  • @alekshila9403
    @alekshila9403 9 лет назад +3

    very interesting ... im learning so fast !!

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

    Thank u sir👍👍

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

    Love it!!!

  • @dhananjayaoffline4551
    @dhananjayaoffline4551 5 лет назад +2

    Use 'Cin>>' thts good

  • @rajubejawada4008
    @rajubejawada4008 4 года назад

    hlo sir actually i know c programming clearly now started learing c++.. i think c and c++ are same except in some cncepts... so please tell me "by learing which concepts i will be good in c++ now "

  • @Lofty05746
    @Lofty05746 7 лет назад +1

    How would you use cin >> in this allplication for the user to input their age so you didn't have to change it in the coding ?

    • @kxnyshk
      @kxnyshk 4 года назад

      Just define an integer variable (int), say "age", then do this :
      cin >>age;
      By this way, you can just enter the age yourself (by the user).

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

    Nice ❤️

  • @swathibommana1344
    @swathibommana1344 9 лет назад +3

    Hi.. Sometimes when I try to build and run the programs, the "build and run" option is grayed out. Can you please let me know the reason for this?

    • @LearningLad
      @LearningLad  9 лет назад

      +Swathi Bommana
      may be you forgot to close the previous run(when u run the program, cmd line windows will appear with your output and you have to close that window before running your program again).

  • @PoojaSingh-vp8ri
    @PoojaSingh-vp8ri 9 лет назад +1

    will these programs run on another platforms like turbo c++?? please answer

  • @maneetkaur2502
    @maneetkaur2502 6 лет назад +1

    sir which software you used for c++???????????

  • @niteshshet7725
    @niteshshet7725 7 лет назад +1

    what happens when we execute the below statement
    int a=10;
    cout

    • @kxnyshk
      @kxnyshk 4 года назад

      It will print :
      10 12 12 10

  • @anthonycarter1582
    @anthonycarter1582 9 лет назад +1

    thank you

  • @helping.tutorials
    @helping.tutorials 8 лет назад +1

    nice sir

  • @kaushalpatidar7383
    @kaushalpatidar7383 6 лет назад

    Sir...I have to write system("pause") to see the execution window in all programs....I m working on visual studio ..can you help to get rid of this?

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

    Tysm

  • @felixlooper
    @felixlooper 7 лет назад +4

    I saw that the "else" wasn't really necessary, you could just use "if" with different statements, no?

    • @LearningLad
      @LearningLad  7 лет назад +4

      yes you can but this video was about if and else.

  • @ainnatashamohdnasir4273
    @ainnatashamohdnasir4273 7 лет назад +3

    what if we ask the user to enter their age by themselves?

    • @LearningLad
      @LearningLad  7 лет назад

      use a scanf function and read the age to value from the user.
      if you dont know about scanf function, then pls watch tutorial on scanf function.

    • @vipuldrockstar5247
      @vipuldrockstar5247 7 лет назад

      We can't use cin?

    • @kleozane2781
      @kleozane2781 7 лет назад +1

      Try it bro, I think it works with cin

    • @wesleychou8148
      @wesleychou8148 7 лет назад

      Let's say you need to be 20 years old in order to vote.
      #include
      using namespace std;
      int main(){
      int user_age;
      cin>>user_age;
      if(user_age

    • @mohsinalvi8054
      @mohsinalvi8054 6 лет назад +1

      #include
      using namespace std;
      int main ()
      {
      int age;
      cout age;
      if(age < 18)
      {
      cout

  • @NazimUddin-bo6wj
    @NazimUddin-bo6wj 5 лет назад +2

    good tutorial

  • @PoojaSingh-vp8ri
    @PoojaSingh-vp8ri 9 лет назад +2

    when i tried to build and run nothing happened, plz help me out

    • @LearningLad
      @LearningLad  9 лет назад

      +Pooja Singh
      can u provide the source code, details about your compiler, ide??

    • @Bdrbs
      @Bdrbs 7 лет назад +1

      How to on ur pc? wow dude, this explains alot

  • @vipuldrockstar5247
    @vipuldrockstar5247 7 лет назад

    I tried making a calculator... It was made for all four but i only get answer for for a-b even when i write any number plz help:::
    int a, b, c;
    cout

  • @naruravanareddy4640
    @naruravanareddy4640 7 лет назад +2

    can u please prepare a notes on basics and keep it as pdf so that i can quickly revise all the topics at any time , plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz

  • @jahanzaibshahid07
    @jahanzaibshahid07 8 лет назад +1

    why are you use int age =16; ??
    couid i use int age;

  • @sachinsiddhu4060
    @sachinsiddhu4060 4 года назад

    Some time I saw ,you had given same variables to two different values , why

  • @oopsclass2992
    @oopsclass2992 8 лет назад +2

    how to give string input............?
    like program should ask me what is your name and i should type it then my name should be displayed

  • @Yash-vm4ts
    @Yash-vm4ts 6 лет назад +1

    else= Yulse

  • @teamtamilasfc3128
    @teamtamilasfc3128 4 года назад

    Hi Anil ÷)

  • @amaanahmad7366
    @amaanahmad7366 6 лет назад

    wooow

  • @chakribalaga3934
    @chakribalaga3934 9 лет назад

    sir could you plzz explain for float also know. Not only for integers

  • @niteshshet7725
    @niteshshet7725 7 лет назад +1

    i am getting output as 9 10 10 10
    i didn't get to know why this is happening like that

  • @indrajitchoramle1859
    @indrajitchoramle1859 5 лет назад +2

    Hindi Mai video banaye

    • @LearningLad
      @LearningLad  5 лет назад

      LearningLad HIndi mera Hindi Channel Hai
      Check kijiye :)

  • @rehanrashid45
    @rehanrashid45 4 года назад

    seems like youre a jojo fan
    yes yes yes

  • @mominuber
    @mominuber 9 лет назад +1

    //Ta~da i made it ...........
    #include
    using namespace std;
    int main()
    {
    int age ;
    cout > age;
    if (age