Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
299 B
1
Indexable
Never
#include <iostream>
using namespace std;

int main()
{
    unsigned short a = 15, b = 8, step = 3, result1, result2, result3;

    result1 = a & b;
    cout << result1 << endl;
    result2 = a ^ b;
    cout << result2 << endl;
    result3 = a >> step;
    cout << result3 << endl;
}