Answers for "if and else statements in c++"

C++
4

if else c++

#include <iostream>
using namespace std;
int main()
{
  int a;
  cin>>a;
  if(a= 0);
  {
    cout<<"a = " << a;
  }
}
Posted by: Guest on October-05-2021
1

c++ if else

if (5 == 4) {
  //code you want to run if the condition is true
} else {
  // code you want to run if the condition is false
}
Posted by: Guest on November-28-2021

Code answers related to "if and else statements in c++"

Browse Popular Code Answers by Language