enter mass 0.01Code:#include <iostream.h> int main() { int mass; cout<<"Enter the mass in kg: "; cin>>mass; int C=300000000; double energy=double(mass*(C*C)); cout<<"This mass would produce "<<energy<<" Joules of energy."<<endl; cout<<"It could power "<<(energy/360000)<<" 100-watt light bulbs for an hour."<<endl; return (0); }
should produce 9e+14
light 2.5e+09 light bulbs
so why the hell do i get 0?