Logical OR Program

www.programmingcalculator.com
https://nikhilnihal.github.io/programmingcalculator/index.html

C++ Program for Logical OR of two Decimal Numbers


#include<bits/stdc++.h>

using namespace std;

int main()
{
    int first_number, second_number,ans;

    cin>>first_number>>second_number;

    ans=first_number|second_number;

    cout<<ans<<endl;

    return 0;
}

Comments

Popular posts from this blog

Getting Started With MEAN App Development with AngularJs , ExpressJs , NodeJs and MongoDB.

B. Dreamoon and WiFi :calculate no. of ways : recursive solution (branch and bound )

A. Dreamoon and Stairs : minimum steps to reach : recursion solution.