## Write A C++ Program To Solve The Function By Using The Nested Conditional Statement.

by Dinesh Thakur Category: Control Structures

## Write a C++ Program to detect whether the entered number is even or odd. Use nested switch () case statement.

by Dinesh Thakur Category: Control Structures

## Write A C++ Menu Driven Program

by Dinesh Thakur Category: Control Structures

## Write A C++ Program To Print The Color According To The Code.

by Dinesh Thakur Category: Control Structures

## Write a C++ Program to Display Time.

by Dinesh Thakur Category: Control Structures

## Write A C++ Program To Display The Color According To Its Code Which Will Illustrate The Concept Of Ladder If Statement.

by Dinesh Thakur Category: Control Structures

## Write A C++ Program To Find Greatest Number Among Three Integer Numbers.

by Dinesh Thakur Category: Control Structures

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.

## Write A C++ Program To Verify is A Number is Divisible By 3 & 5 Or Not.

by Dinesh Thakur Category: Control Structures

## Write a C++ Program to Find out Whether It is An Odd Number Or Even Number. Any Integer is Input through the Keyboard.

by Dinesh Thakur Category: Control Structures

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:

## Write A C++ Program To Check Whether The Candidate's Age Is Greater Than 17 Or Not. If Yes, Display Message "Eligible For Voting".

by Dinesh Thakur Category: Control Structures

## What is Control Statements?Explain

by Dinesh Thakur Category: Control Structures

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

## What is to Loop? Type of Loop

by Dinesh Thakur Category: Control Structures

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.

## What is Control Statements? Explain

by Dinesh Thakur Category: Control Structures

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.

## Enumeration Data Type

by Dinesh Thakur Category: Control Structures

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:

## Data Storage Type in C++

by Dinesh Thakur Category: Functions

Auto

The values of the variables are not retained beyond the scope of a function in which they are declared. The values of the variables can be accessed only during the execution of a function. Whatever variables are declared in a function, they are assumed implicitly of auto storage type. For example in the following program segment

## Write C++ program is used for finding the real root of an equation by Newton Raphson technique

by Dinesh Thakur Category: Functions

## Write C++ Program Illustrates Passing Structure To A Function.

by Dinesh Thakur Category: Functions

## Array as Argument in A Function in C++

by Dinesh Thakur Category: Functions

Arguments in a function can also be of array type. When the arrays are passed by value in a function, it is written as shown in the following example:

## Recursive Function

by Dinesh Thakur Category: Functions

A recursive function is a function which invokes itself repeatedly. In this case function name appears within the function. Two examples of recursive function are given as follows:

## Functions With or Without Return Value

by Dinesh Thakur Category: Functions

A function can also return values to the calling program. For such functions, the type of the value returned to the calling function should be mentioned before the function name in the definition. The general syntax of a function which returns value is:

Page 6 of 18

About Dinesh Thakur

Dinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.