2
I have a problem with very large numbers. When I put the input
64
my program does not display the right answer, remembering that all smaller numbers are with normal output.
Exit from the program:
0 kg
Expected exit:
1537228672809129 kg
source code:
#include <iostream>
using namespace std;
int main(){
int a;
uint64_t x=1,kg;
cin>>a;
for(int cont=0;cont<a;cont++){
x*=2.0;
}
kg=x/12/1000;
cout<<kg<<" kg\n";
}