Posts

Image
  Desktop Windows Requires Windows 10 or newer. For all other operating systems, you can use WhatsApp Web in your browser. Mobile and Tablet Android Minimum Requirements (Version 2.23.12.75) Android OS 5.0 or above Mobile iOS Minimum Requirements (Version 22.13.74) Requires iOS 12.0 or newer Visit  whatsapp.com/dl  on your mobile phone to install Already downloaded? Learn more about what you can do on WhatsApp. Message privately Learn more Stay

C++ PROGRAMMING ( USE OF IF, ELSE,ELIF)

Image
  C++ if, if...else and Nested if...else In computer programming, we use the  if...else  statement to run one block of code under certain conditions and another block of code under different conditions. For example, assigning grades (A, B, C) based on marks obtained by a student. if the percentage is above  90 , assign grade  A if the percentage is above  75 , assign grade  B if the percentage is above  65 , assign grade  C There are three forms of  if...else  statements in C++. if  statement if...else  statement if...else if...else  statement C++ if Statement The syntax of the  if  statement is: if (condition) { // body of if statement } The  if  statement evaluates the  condition  inside the parentheses  ( ) . If the  condition  evaluates to  true , the code inside the body of  if  is executed. If the  condition  evaluates to  false , the code inside the body of  if  is skipped. Note:  The code inside  { }  is the body of the  if  statement. How if Statement Works Example 1: C++