Wednesday, May 20, 2020

Boolean expressions in C++


  • Program :

#include <iostream>
using namespace std;

int main() {
  cout <<"\n----------------BOOLEAN EXPRESSIONS----------------\n";
  int x = 15;
  int y = 10;
  cout <<"\n"<<x<<" > "<<y<<" is "<<(x > y);
  cout <<"\n"<<x<<" == "<<y<<" is "<<(x == y);
  return 0;
}




  • Output :


No comments:

Post a Comment

Function Overloading in C++

https://monitechvenkat1620.blogspot.com Program : #include <iostream> using namespace std; int c(int x, int y) {   return...