Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 04 / Task2.cpp
blob: a45a2e6539b57b54e6e4c41cef41ce144871ad8c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <iostream>
using namespace std;

int main()
{
	int n, k;
	cin >> n >> k;

	int temp = 1;
	temp = temp << k; 
	
	if ((n & temp) == 0)
		cout << "0";
	else
		cout << "1";

}