manishnips.blogspost.com

C++ - Control Statement

C++ if-else

In C++ programming, if statement is used to test the condition. There are various types of if statements in C++.

  • if statement
  • if-else statement
  • nested if statement
  • if-else-if ladder

C++ IF Statement

The C++ if statement tests the condition. It is executed if condition is true.

  1. if(condition){    
  2. //code to be executed    
  3. }  


Scala - IF ELSE Statements - Tutorialspoint

C++ If Example

Output:/p>


Previous
Next Post »

1 comments:

Click here for comments
Manish gupta
admin
28 July 2020 at 09:04 ×

nice content !

Congrats bro Manish gupta you got PERTAMAX...! hehehehe...
Reply
avatar