About 693,000 results
Open links in new tab
  1. If Else Statement in Programming - GeeksforGeeks

    Mar 26, 2024 · An if else statement in programming is a basic programming technique that allows you to make decisions based on certain conditions. It allows your program to execute different pieces of code depending on whether the specified condition evaluates to true or false.

  2. Decision Making in C (if , if..else, Nested if, if-else-if )

    Apr 2, 2025 · In C, programs can choose which part of the code to execute based on some condition. This ability is called decision making and the statements used for it are called conditional statements. These statements evaluate one or more conditions and make the decision whether to execute a block of code or not.

  3. C++ If...else (With Examples) - Programiz

    The if...else statement is used to run one block of code under certain conditions and another block of code under different conditions. In this tutorial, we will learn C++ if, if…else and nested if…else with the help of examples.

  4. C if else Statement - GeeksforGeeks

    Dec 23, 2024 · The if else in C is an extension of the if statement which not only allows the program to execute one block of code if a condition is true, but also a different block if the condition is false. This enables making decisions with two possible outcomes. Let’s take a …

  5. Python if, if...else Statement (With Examples) - Programiz

    Python if…elif…else Statement. The if...else statement is used to execute a block of code among two alternatives. However, if we need to make a choice between more than two alternatives, we use the if...elif...else statement. Syntax. if condition1: # code block 1 elif condition2: # code block 2 else: # code block 3

  6. Conditionals and How They Are Used in Algorithms - Medium

    Jan 8, 2018 · In this example we’ll use a switch and case approach instead of running through an entire if-then-else chain, The switch is evaluated once, that value is compared to the value of each...

  7. C Decision Making: If, If-Else, Switch-Case - TechBeamers

    Jan 7, 2019 · In this C programming class, we’ll cover the C decision-making constructs such as C if, if-else, and the switch-case statement. It is also known as conditional programming in C. If Statement in C C If Syntax: Program using C If Statement to Find the Greatest of Two Numbers.

  8. C Conditional Statement: IF, IF Else and Nested IF Else with Example

    Aug 8, 2024 · In ‘C’ programming conditional statements are possible with the help of the following two constructs: 1. If statement. 2. If-else statement. It is also called as branching as a program decides which statement to execute based on the result of the evaluated condition. What is a Conditional Statement in C?

  9. Understanding Conditionals: If, Else If, and Else Statements …

    Among these, the if, else if, and else statements are fundamental constructs that every programmer should master. In this comprehensive guide, we’ll dive deep into these conditional statements, exploring their syntax, usage, and best practices to help you become a more proficient coder.

  10. Python Conditional Statements and Loops

    Python’s flow control mechanisms like conditional statements and loops are fundamental to writing effective programs. These constructs allow you to make decisions and repeat operations, forming the backbone of algorithmic thinking in Python.

  11. Some results have been removed
Refresh