#include #include int main() { double pi = 3.1415; std::cout << std::setiosflags(std::ios:base::scientific) << pi << std::resetiosflags(std::ios_base::scientific) << pi << '\n'; }