Learning C Programming || C Flow Control-C if-else Statement || For Beginners || #C127

Subscribers:
10,700
Published on ● Video Link: https://www.youtube.com/watch?v=YWnUorMklSw



Duration: 14:50
266 views
11


In programming, decision making is used to specify the order in which statements are executed. In this tutorial, you will learn to write if...else statements to make decisions in your program.
Table of Contents
if Statement
Example: if Statement
if...else Statement
Example: if...else Statement
if...else Ladder
Example: if...else Ladder
Nested if...else
Example: Nested if...else
C if statement
How if statement works?
The if statement evaluates the test expression inside the parenthesis.

If the test expression is evaluated to true (nonzero), statement(s) inside the body of if is executed.
If the test expression is evaluated to false (0), statement(s) inside the body of if is skipped from execution.
C if...else statement
The if statement may have an optional else block. The syntax of if..else statement is:
How if...else statement works?
If test expression is evaluated to true,

statement(s) inside the body of if statement is executed
statement(s) inside the body of else statement is skipped from execution.
If test expression is evaluated to false,

statement(s) inside the body of else statement is executed
statement(s) inside the body of if statement is skipped.
if...else Ladder (if...else if....else Statement)
The if...else statement executes two different codes depending upon whether the test expression is true or false. Sometimes, a choice has to be made from more than 2 possibilities.

The if...else ladder allows you to check for multiple test expressions and execute different statement(s).
Nested if...else
It is possible to include if...else statement(s) inside the body of another if...else statement.

INTRODUCTION
Keywords & Identifier
Variables & Constants
C Data Types
C Input/Output
C Operators
FLOW CONTROL
if...else Statement
C for Loop
C while Loop
break and continue
switch Statement

#rubalsolutions #coding #developer #programming #programmer #technology #clanguage #computerscience #c #informaticpractices #sub #subscribe #youtube #newyoutuber #youtubechannel




Other Videos By Rubal Solutions


2019-02-21Program 23 #P23 - C Program to Check Whether a Number is Positive or Negative #C135
2019-02-21Program 22 #P22 - C Program to Find all Roots of a Quadratic Equation #C134
2019-02-21कशी का प्रसाद ।। Narrated By : मुदित बंसल ।। 3rd B || Anslem Ajmer.
2019-02-20Program 21 #P21 - Program to know LARGEST number among THREE numbers NESTED IF..ELSE STATEMENT #C133
2019-02-20Program 20 #P20 - Program to know LARGEST number among THREE numbers using IF..ELSE STATEMENT #C132
2019-02-20Program 19 #P19 - Program to know LARGEST number among THREE numbers using ONLY IF STATEMENT #C131
2019-02-20Awesome Toddler learning binder made by Artist ‎Reshma Maknojia. WORTH SHARING . It's inspires us .
2019-02-19Program 18 #P18 - Program to relate two integers using operators for if else ladder #C130
2019-02-19Program 17 #P17 -// Program to check whether an integer entered by the user is odd or even #C129
2019-02-19Program 16 #P16 -C Program to display a number if user enters negative number #C128
2019-02-19Learning C Programming || C Flow Control-C if-else Statement || For Beginners || #C127
2019-02-18Program 15 #P15 -C Program to demonstrate the working of C Ternary Operator #C126
2019-02-18Program 14 #P14 -C Program to demonstrate the working of logical operators #C125
2019-02-18Program 13 #P13 - C Program to demonstrate the working of relational with arithmetic operators #C124
2019-02-17Program 12 #P12 - C Program to demonstrate the working of assignment operators #C123
2019-02-17Program 11 #P11 - C Program to demonstrate the working of increment and decrement operators #C122
2019-02-17Program 10 #P10 - Program to demonstrate the working of arithmetic operators #C121
2019-02-17Learning C Programming || C Programming Operators in C || For Beginners || #C120
2019-02-14Inquilab Zindabad ।। 😈😈🙌🙌 भावपूर्ण श्रद्धाजलि ।।
2019-02-14Program 9 #P09 - Program To Swap Numbers Without Using Temporary Variable #C119
2019-02-13Yoga Poses For Beginner's || Let Motivate Ourselves ||



Tags:
computer education
computer education in Hindi
computer education for kids
basic computer training
kids computer
computer for kids
kids technology
rubalsolutions
beginner YouTube
coding
developer
newyoutuber
subscribe
sub
computer-science
learn to code
learn programming
#flow control
#ifelse
#C Flow Chart
#If else endif
if...else Ladder
Nested if...else
if...else Statement
C Flow Control
c language
#detailedcprogram