C decision making structure

Page 1

C++ Decision Making Structure Tccicomputercoaching.Com C++ Decision making structure allows you to make decision based on condition. Decision making structures require that the programmer specify one or more conditions to be evaluated or tested by the program, along with a statement or statements to be executed if the condition is determined to be true, and optionally, other statements to be executed if the condition is determined to be false.

Condition

True

False

C++ allows following statements as decision making structure: If statement : This includes only one if statement which contains one if condition, if it becomes true then true statement executes. if( expression ) { statement-inside; } statement-outside;


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.