Browsing category

If block

if statement in Java programming language

If statement in Java programming language In this tutorial, We discuss if statement in Java programming language In Java programming, “if statement” could be used to execute a section of code based a Boolean expression. when Boolean expression is true,  ‘if“  part will be executed. when it is false, then the flow of control will…

if statement in CPP programming language

In this tutorial, we will discuss about if statement in CPP programming language if statement in CPP programming Typically, if statement evaluates the particular condition inside the parenthesis. When the expression in the if statement is evaluated to be true, body part statements of if is executed. When the expression is evaluated to be false, the…

If statement in C programming language

If statements in C programming language In this tutorial, we will discuss If statement in C programming language if …else…statement Three type of “if“ statements are mainly available in Java: if statements if else statements if else if else statements if statements Declaration Syntax if(Test_condition){ statement(s) } //this statements are false control flow jump out…

if statement in Python programming language

if statement in Python programming language In this tutorial, we will learn about if statement in Python programming language In the Python programming language, the if..elif..else statement is used for decision making. If statement in Python Declaration Syntax   Flow diagram of if statement in Python   Here, Initially, the program test expression is evaluated…

Nested if statement in C programming language

Nested if statement in C programming language We will learn about Nested if statement in C programming language In C Programming Language, the nested if-else statement is one if-else statement is used inside another if- else statement. Declaration The syntax of Nested if in C Language if(condition1)  //outer if {//executes when condition1 is true             …

The if keyword in Java programming language

The if keyword in Java programming language In this tutorial,we will learn about The if  keyword in Java programming language In Java if  keyword in java  is used to  if statement to test the boolean expression.  It indicates conditional execution of a block. The condition must be evaluated to a boolean value. An if statement may…