Control statement in C++. Now I am explaining the chapter control statement. Q. What is control statement? -The statement used to control the flow of compiler during execution. There are two types of control statement: 1. Conditional control statement -Control the flow of compiler based on the condition during execution time. for example- selection/ decision-making statement...as if-else and switch case iterative/looping satement...as for loop, while loop and do-while loop. 2. Unconditional control statement -Control the flow of compiler without condition during execution. for example- goto-statement break statement continue statement return statement. Now I will go through separately 1. If-else statement Syntax- if(conditional expression) { block of statement 1; } else { block of statements 2; } Q. How do we check whether a number is an integer or real by the if-else statement? #include<iostream.h...
This blog is only for education purpose, for those who want to interact with the IT world.This may help you to build the basic concepts in software engineering.