Question:Which output will produce the following program code?
#include<iostream>
using namespace std;
int main(){

    cout.setf(ios::fixed);  
    cout.precision(2);
    cout<<345.4545;
   
}
 

A 345.45 

B 345.4545 

C 3.5e+002 

D 345.4500 

+ Answer
+ Report
Total Preview: 853

Copyright © 2024. Powered by Intellect Software Ltd