Type Casting replace cout<<"Int=: "<<c_1<<endl<<"Float=: "<<c_2; with cout << "Int=: "<< i << "\nFloat=: " << f;