Uri Soluiton 2232 Pascal's Triangle

#include<stdio.h>
#include<math.h>
int main()
{
    int n,d,i,x;
    scanf("%d",&x);
    for(i=1;i<=x;i++)
    {
    scanf("%d",&n);
    d=pow(2,n);
    printf("%d\n",d-1);
    }
    return 0;
}

Comments

Popular posts from this blog

Uri Solution 2747 Output 1

Codeforces Solution 230B T-primes