Run ❯
Get your
own
website
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Go to Spaces
Ctrl+Alt+P
#include
#include
// for fixed and setprecision using namespace std; int main() { double myDouble = 9; // Automatic conversion: int to double cout << fixed << setprecision(1); cout << myDouble; // 9.0 return 0; }
9.0