my output is coming wrong. I guess i'm wrong with casting. please help me out.
int n;
cin>>n;
unsigned long long int a,s;
cin>>a;
s=(2*pow(10,n)+a);
But when I am giving large n
like 17
or 18
then my output which is s
is not coming as expected.
see image for output
e.g: when n=17
, a=67576676767676788
then s=267576676767676800
which ideally should be 2*10^17 + 67576676767676788