In this blog , we will be creating a program to determine whether a number entered by user is positive, negative or zero. Program uses if elif and else statement.
Read More »Tag: Conditional Programming
Finding Odd or Even number using if and else
To find odd and even number, we will be using if and else condition. This if and else condition will be created inside a function that we can call after getting value from the keyboard.
Read More »Conditional Programming
Conditional programming or branching is something that we use every day or every moment. For example, if it s raining then i need to carry an umbrella. If i am late for work, then i need call my manager.
The main tool in conditional programming is the if statement. This if statement has different form and can be use according to our requirement.