C examples for Statement:if

Click the following links for the tutorial for Statement and if.

- Use nested if statements to see whether you enter an odd or an even number.
- Using Blocks of Code in if Statements
- If ... else statement
- The Basic if Statement
- Test user input value with if statement and logical operators
- If with else
- Operators Used in if Comparisons
- Print message if input is less than 5
- Use if statement to check user answer to the old yes-or-no question, case insensitive.
- Use if statement to check user answer to the old yes-or-no question, case sensitive.
- Calculates how old they will be in the current year using if statement
- Loops through 10 numbers and tests for odd and prints the even message
- Implement the sign function.
- Determine if a year is a leap year.
- Determine if a number is even or odd with if...else statement
- Determine if a number is even or odd.
- Calculating the Absolute Value of an Integer.
- Evaluate simple expressions of the form "number operator number" with nested if...else statement
- Evaluate simple expressions of the form "number operator number"
- Checks if two numbers are are evenly divisible.
- If Statement
- Assigns x to y only if x is greater than y, using if statements.
- Demonstrates the use of if statement with else clause
- What will the following program print for nesting if into for statement?
- Use nested if statements display divisors of a number
- What will the following program print when given this input?
- Using if else statements, reads input up to #, replaces each period with an exclamation mark