📜  elseif c++ 代码示例

📅  最后修改于: 2022-03-11 14:44:44.997000             🧑  作者: Mango

代码示例1
if( a == 10 ) {
      cout << "Value of a is 10" << endl;
   } else if( a == 20 ) {
      // if else if condition is true
      cout << "Value of a is 20" << endl;
   }