Get ith Bit not giving correct ans

#include
using namespace std;
int getithBit(int n, int i)
{
if(n&(1<<i)>=1)
{
return 1;
}
if(n&(1<<i)==0)
{
return 0;
}
}
int main()
{
int n,i;
cout<<“Enter the number and ith Bit :”<<endl;
cin>>n>>i;
cout<<"The last Bit : "<<getithBit(n,i)<<endl;

return 0;

}

This code is not giving me if there is 0 bit , always give me 1

Resolved it
own my own
there was some brackets issue with the syntax