10: Conditional Statements In C# | If, Else if, Else | C# Tutorial For Beginners | C Sharp Tutorial

In this C# tutorial you will learn about conditional statements which are used to run specific blocks of code, if certain conditions are met. Conditional Statements are used constantly in C# applications.
Review the Operator episode here: • 5: Different Operators...
➤ GET ACCESS TO MY LESSON MATERIAL HERE!
First of all, thank you for all the support you have given me!
I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you!
I am now using Patreon to share improved and updated lesson material, and for a small fee you can access all the material. I have worked hard, and done my best to help you understand what I teach.
I hope you will find it helpful :)
Material for this lesson: / lesson-material-42361704

Пікірлер: 55

  • @yulana990
    @yulana9904 жыл бұрын

    How is it that your explanations are so easy yet every school assignment I get is SO awfully explained that I have to look up 5 different websites just to realise how easy it is. Even now my assignment doesn't fully make sense but thanks to you I managed to understand atleast 1 part :)

  • @BionicEdit

    @BionicEdit

    4 жыл бұрын

    kurochi chan I felt this bro

  • @bubblegum2445

    @bubblegum2445

    4 жыл бұрын

    ikr?? lol

  • @cicbeats8897

    @cicbeats8897

    4 жыл бұрын

    I studied programing for 4 years in university. Every week we had 4 hours of C# explaining things that my boy explained for 10 mins.

  • @eavaav3766

    @eavaav3766

    3 жыл бұрын

    SAME!!!!!!!!!! I hate that I pay thousands of dollars for college courses and instructors that barely teach me anything, when the only reason I'm passing those classes is because of stack overflow and youtube.. and the info on those websites is available for free

  • @lysergichedgehog7769

    @lysergichedgehog7769

    Жыл бұрын

    I'm in a Bootcamp right now and completely feel this. I have to find different source material in which it provides a more in-depth look into comprehending this subject matter.

  • @Dani_Krossing
    @Dani_Krossing5 жыл бұрын

    Hi everyone! Sorry about the echoing audio quality in this one. The next video will be a bit echo'ee too, but I will try and get it fixed for future episodes :)

  • @browntulipsmedia3419

    @browntulipsmedia3419

    5 жыл бұрын

    Audio wasn't that bad.

  • @bigdanslivestreams4060

    @bigdanslivestreams4060

    2 жыл бұрын

    @@browntulipsmedia3419 Yeah, I honestly couldn't tell.

  • @Big__Thicc
    @Big__Thicc4 жыл бұрын

    Its very very hard to teach someone how to program and you are clearly doing it perfectly, with your help I learned HTML, CSS, JavaScript, Python and now decided to try me some C#. You are amazing!

  • @elo9639
    @elo96393 жыл бұрын

    Maigi pa dine madali dali, thank you!

  • @bipanpreetkaur2184
    @bipanpreetkaur21844 жыл бұрын

    I absolutely love the way u explain everything so easily. This is the best tutorial for beginners. Thank you!

  • @fredoh2768
    @fredoh27682 жыл бұрын

    2 Months into coding and this are the best teaching videos that I have ever watch. Thank You!

  • @llama-berry
    @llama-berry4 жыл бұрын

    One of the best tutorials for c#, ive learned ALOT!

  • @mika.tolentino143
    @mika.tolentino1432 жыл бұрын

    finally, I found the right video and the right channel. Thank you😊

  • @newprogrammer1811
    @newprogrammer18115 жыл бұрын

    Thank you so much. one of the best if not the best c# tutorial.

  • @mr.webdev3700
    @mr.webdev37005 жыл бұрын

    Great video! Thank you!

  • @hshsjsjsj506
    @hshsjsjsj5063 жыл бұрын

    You and The New Boston is really great teacher i learn programming because of you two. Thanks.

  • @AlexDBall
    @AlexDBall5 жыл бұрын

    Excellent, as always!

  • @aileencastruita1149
    @aileencastruita11492 жыл бұрын

    Thank you so much for this video! I couldn't find a video that explained if statements with Visual Studio then I found your page.

  • @kwabenalloyd
    @kwabenalloyd Жыл бұрын

    Your explanations always on point , easy to understand

  • @twicon87
    @twicon872 жыл бұрын

    omfg im reading this course in my country and i was stuck the whole day, your explanation was crystal clear to me.

  • @harryflashman4542
    @harryflashman45424 жыл бұрын

    quarantined student here. Close to giving up but these are helping a lot. Makes me wonder why I am enrolled in a degree course when this is much more efficient use of study time.

  • @kiranshewale8264
    @kiranshewale82642 жыл бұрын

    Thank you for the easy and simple explanation :)

  • @borjhilas180
    @borjhilas18011 ай бұрын

    your tutorial is direct to the point. Wazzz up dude im from philippines ^_^

  • @simpsonelli
    @simpsonelli3 жыл бұрын

    Great explanation, thank you.

  • @R69Games
    @R69Games2 жыл бұрын

    Awesome explained, Thank you ! :)

  • @siyaluten5553
    @siyaluten55532 жыл бұрын

    Great content 👌👌really helpful

  • @dave77777777
    @dave777777772 жыл бұрын

    Thanks for the info!

  • @franchise8377
    @franchise83772 жыл бұрын

    The main character in explanations

  • @Ishowspeeedtv
    @Ishowspeeedtv4 жыл бұрын

    thanks alot God bless you

  • @elizajanortizo8447
    @elizajanortizo8447 Жыл бұрын

    i have a practical exam tom about if statement and this helped me understand everything

  • @inspirationalquotes5840
    @inspirationalquotes58404 жыл бұрын

    you are more hansom, smarter and Understanding than my professor.

  • @javiercoronadelrio5094
    @javiercoronadelrio50944 жыл бұрын

    millions thanksss

  • @sorryrashmi9885
    @sorryrashmi98853 жыл бұрын

    u are awesome....!!!

  • @mkjigoro4200
    @mkjigoro42005 жыл бұрын

    Good one...

  • @nielsvanherwijnen
    @nielsvanherwijnen3 жыл бұрын

    holy shit great vid

  • @erichaelvina5624
    @erichaelvina56244 жыл бұрын

    Do you have c# program that deals with computation, variable, and if ,else if statement..

  • @kubulus7868
    @kubulus78685 жыл бұрын

    Is there any other way to check data (other than ifs)?

  • @akshaygadhe636
    @akshaygadhe6362 жыл бұрын

    I want to use two conditions in if loop using && is it possible?

  • @jackmatcrl8161
    @jackmatcrl81613 жыл бұрын

    Design an algorithm that will read a series of integers at the terminal. The first integer is special, as it indicates how many more integers will follow. The first integer must be between 3 and 10. Your algorithm is to calculate the sum and average of the integers, excluding the first integer, and display these values to the screen. The program must also display the minimum and the maximum number entered excluding the first integer. Write an algorithm in the form of Pseudocode and flowchart. Perform desk checking (include desk check table). Implement it in Python or C#. like if u know how to do the C++ code for this hit me up pleaase

  • @eboinspyra
    @eboinspyra Жыл бұрын

    QUESTION 1 a) To improve proceeds from ticketing at the various stadia, authorities decided to automate the way tickets were sold. As a programmer, consider the automation process as a program development process and explain the phases you would consider when you develop your system. b) Assuming you are to write an algorithm to depict the various components of the system. Determine the various section of the algorithms that will help any programmer without any knowledge of the system to correct build the system. c) Visualization is usually the best way to explain how a system works. Draw a well-labeled diagram to show the various parts of your system.

  • @TakiTarik
    @TakiTarik3 жыл бұрын

    Hello i hope you can help me i cant find the answer anywhere tho, So as following I have an assignment, and i have 4 labels ,2 buttons and a listbox when i add items to my listbox with a button for example a sentence, then i have my 2 other buttons btnAccept and btnDecline When i click btnAccept or decline the sentence in my listbox should be remove gone but idk how to do this, and second of all is when i i click btnAccept my value in 1 of the 4 labels, labelAccept should change to labelAccept 1 if i click btnAccept again once i've added a new sentence to my listbox and i click on btnaccept then the labelAccept 1 changes to labelAccept 2 the value has to change each time if i accept more or decline more vice versa for other labels any idea ? maybe u can help me out i would be so gratefull .

  • @togglinho
    @togglinho4 жыл бұрын

    how do i make so the if statement is about 1+ words instead of numbers?

  • @zaynmehrali9096

    @zaynmehrali9096

    4 жыл бұрын

    Maybe you've found out the answer, however you would simply change the data type to a string. e.g. string a = "Hello".

  • @memolaw405
    @memolaw4053 жыл бұрын

    Could anyone help me guys for me when I type if, the if becomes red everytime and doesnt work.

  • @lokomoko008
    @lokomoko0089 ай бұрын

    Ok but how do i assign this to a specific label?

  • @codingwitheric6774
    @codingwitheric67743 жыл бұрын

    using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GreatVideo { class Program { static void Main(string[] args) { string message = "Great Video!"; Console.WriteLine(message); } }

  • @eboinspyra
    @eboinspyra Жыл бұрын

    QUESTION 3 a) A particular part of a program is to be repeated 100 times. Determine how this could be efficiently done. b) Write a pseudo code for the question in “a” above. c) Implement your answer in “a” above, by writing a program to display “The Russian has invaded Ukraine” 100 times. Your display should be numbered from 1 - 100

  • @sujitsingh4893
    @sujitsingh48935 жыл бұрын

    first

  • @eboinspyra
    @eboinspyra Жыл бұрын

    Kindly help me solve this; QUESTION 5 a) Conditional operators are some of the key building blocks of programming. Convert the conditional operation below to an if-else statement. Y = (A

  • @LuzuVlogsGamer
    @LuzuVlogsGamer Жыл бұрын

    Should I be worried that its uploaded on April fools day?

  • @tda8184
    @tda81844 жыл бұрын

    C# keeps giving me shit about else statements and how they cant run instructions even tho I'm doing it the same way you and 2 others did plz send me help lmao edit 5mins l8r: nvm I figured it out

  • @PinkMappy

    @PinkMappy

    3 жыл бұрын

    I think I have the same problem, how did you fix it?