by Dinesh Thakur

Continue statement is used for continuing a loop when an unexpected condition occurs. Basically this statement helps in passing control to the beginning of the loop.

 
by Dinesh Thakur

The statement tests the value of a variable against a list of integer or character constants. If the variable matches any of the constants, statements associated with that constant (case) are executed. If there is more than one statement following any case, the statements are enclosed in curly brackets. Value of the switch variable should be provided before the switch statement.

 
by Dinesh Thakur

                                Sum-of-Series

 
by Dinesh Thakur

This function causes the program to terminate from any portion of the program and does not have any return value. It has only one argument whose value is returned to the operating system when the program is terminated. This function is included in the <stdlib.h> header file. Hence this header file must be included in the beginning of the program.



 
by Dinesh Thakur

The desired accuracy is upto 6 decimal places. The formula for finding a real root of an equation f(x) = 0 is given by

 
by Dinesh Thakur

Jump statements are used to alter the flow of control unconditionally. That is, jump statements transfer the program control within a function unconditionally. The jump statements defined in C++ are break, continue, goto and return. In addition to these jump statements, a standard library function exit () is used to jump out of an entire program.

 
by Dinesh Thakur

The statements that cause a set of statements to be executed repeatedly either for a specific number of times or until some condition is satisfied are known as iteration statements. That is, as long as the condition evaluates to True, the set of statement(s) is executed. The various iteration statements used in C++ are for loop, while loop and do while loop.

 
by Dinesh Thakur

Conditional statements, also known as selection statements, are used to make decisions based on a given condition. If the condition evaluates to True, a set of statements is executed, otherwise another set of statements is executed.

 
by Dinesh Thakur

In the example, the user is prompted to enter values for three numbers a, b and c. It then checks for the test condition (a>b). If this condition is true then it checks for the test condition (a>c) using the if-else block contained in it. If the condition (a>c) evaluates to true then the message a is the Greatest is displayed otherwise the message c is the Greatest is displayed.

 
by Dinesh Thakur

This if-else statement prints whether an integer number n is odd or even. A number is even if it is divisible by 2. Thus, if expression n % 2 == 0 is true, number n is even; otherwise it is odd. Alternatively, we can write this if statement as follows:

 
by Dinesh Thakur

The Control Statements are used for controlling the Execution of the program there are the three control statements those are break, goto, continue.

 
by Dinesh Thakur

A Computer is used for performing many Repetitive types of tasks The Process of Repeatedly performing tasks is known as looping .The Statements in the block may be Executed any number of times from Zero to Up to the Condition is True. The Loop is that in which a task is repeated until the condition is true or we can say in the loop will Executes all the statements are until the given condition is not to be false.



 
by Dinesh Thakur

We know that Instruction those are written in c++ Language are Executed in Sequence wise or Step Wise as they are Written in Program. Or these are executed in Sequence Order.Decision Making statements are used when we wants to execute the statements as according to the user needs. A User can Change the Sequence of the Statements for Execution.

 
by Dinesh Thakur

An enumerated data type is also an user defined data type. The enum keyword is given before the enumerated data type. A list can tell the compiler which values a given variable can take. Consider the following example: