Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 4 / Task2.cpp
blob: fca8f479e0a3269d56329f26f64d515a043272f0 (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";

}