Welcome dear viewers in this video we have discussed about
1. #decision Construct topics
2. #programming languages
3. #basic syntax and constructs
4. #relational_algebra_query operator
5. #programs
6. #if statement
7. #c if else statement
8. #if else if
9.#nested if
10. #switch statement Please like, share and subscribe the channel.
/ @almustafaglobalvillage
• C++ Lec-1 | Introduction To Programming | ...
• Introduction to Programming Language
https://whatsapp.com/channel/0029VaO8...
https://www.tiktok.com/@al.mustafa.gl...
https://www.facebook.com/share/5PPSbp...
https://www.instagram.com/almustafagl...
Decision Making in C++ (if , if..else, Nested if, if-else-if )
The conditional statements (also known as decision control structures) such as if, if else, switch, etc. are used for decision-making purposes in C programs.
They are also known as Decision-Making Statements and are used to evaluate one or more conditions and make the decision whether to execute a set of statements or not. These decision-making statements in programming languages decide the direction of the flow of program execution.
Need of Conditional Statements
There come situations in real life when we need to make some decisions and based on these decisions, we decide what should we do next. Similar situations arise in programming also where we need to make some decisions and based on these decisions we will execute the next block of code. For example, in C if x occurs then execute y else execute z. There can also be multiple conditions like in C if x occurs then execute p, else if condition y occurs execute q, else execute r. This condition of C else-if is one of the many ways of importing multiple conditions.
Types of Conditional Statements in C
Following are the decision-making statements available in C:
1. if Statement
2. if-else Statement
3. Nested if Statement
4. if-else-if Ladder
5. switch Statement
6. Conditional Operator
7. Jump Statements:
• break
• continue
• goto
• return
What is C++?
C++ is a most popular cross-platform programming language which is used to create high-performance applications and software like OS, Games, E-commerce software, etc. It was developed by Bjarne Stroustrup, as an extension of C language. C++ give a high level of control over system resources and memory.
Why Learn C++?
C++ is one of the most used and popular programming languages.
C++ is used in making operating systems, embedded systems, and Graphical User Interfaces.
It is an object-oriented programming language that implements all the OOPs concepts such as Abstraction, Encapsulation, and Inheritance, which gives a clear structure to programs and allows code to be reused, lowering development costs and providing security.
It is portable and can be used to create applications that can be adapted to multiple platforms.
C++ is easy to learn so that you can choose it as your first programming language.
It makes programming easy for programmers to switch to C++ because its syntax is similar to C, Java, and C#.