What is the output of program, cout.scientific - C++ File Stream

C++ examples for File Stream:cout

Description

What is the output of program, cout.scientific

Demo Code

#include <iostream>
#include <iomanip>

using namespace std;
int main(int argc, const char *argv[]) {
    cout << setw( 10 ) << setprecision( 2 ) << scientific << 444.987654; 

    return 0;// ww  w  .  ja  v  a  2s  .  co  m
}

Result


Related Tutorials