[ create a new paste ] login | about

Link: http://codepad.org/XciS0H2J    [ raw code | output | fork ]

C++, pasted on Jun 27:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iomanip>
#include <iostream>
using namespace std;
 
int main()
{
    double arr[] = {0.025, -68e-23};
    cout<<arr[0]<<endl;
    cout<<arr[1]<<endl;
    cout<<scientific<<arr[0]<<endl;
    cout<<scientific<<arr[1]<<endl;
    cin.get();
    return 0;
}


Output:
1
2
3
4
0.025
-6.8e-22
2.500000e-02
-6.800000e-22


Create a new paste based on this one


Comments: