I'm having trouble with very large numbers. When I put the entrance
64
my program does not display the correct answer, remembering that all smaller numbers are with normal output.
Program exit:
0 kg
Expected output:
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";
}