-PreludeCode:#include <iostream> #include <iomanip> int main() { double d = 4.567; std::cout.precision ( 3 ); std::cout<< d <<std::endl; std::cout.precision ( 2 ); std::cout<< d <<std::endl; }
-PreludeCode:#include <iostream> #include <iomanip> int main() { double d = 4.567; std::cout.precision ( 3 ); std::cout<< d <<std::endl; std::cout.precision ( 2 ); std::cout<< d <<std::endl; }
My best code is written with the delete key.