-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2754.cpp
More file actions
27 lines (21 loc) · 1.08 KB
/
Copy path2754.cpp
File metadata and controls
27 lines (21 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <stdio.h>
#include <iostream>
#include <iomanip>
#include <math.h>
#include <string>
using namespace std;
int main() {
double nao_contem_glutem, diet;
nao_contem_glutem = 234.345;
diet = 45.698;
cout << fixed << setprecision(6) << nao_contem_glutem << " - " << diet << endl;
cout << fixed << setprecision(0) << nao_contem_glutem << " - " << diet << endl;
cout << fixed << setprecision(1) << nao_contem_glutem << " - " << diet << endl;
cout << fixed << setprecision(2) << nao_contem_glutem << " - " << diet << endl;
cout << fixed << setprecision(3) << nao_contem_glutem << " - " << diet << endl;
cout << fixed << setprecision(6) << scientific << nao_contem_glutem << " - " << diet << endl;
cout << fixed << setprecision(6) << scientific << uppercase << nao_contem_glutem << " - " << diet << endl; // desculpa professor nao achei como usar o scientific com E :((
cout << fixed << setprecision(3) << nao_contem_glutem << " - " << diet << endl;
cout << fixed << setprecision(3) << nao_contem_glutem << " - " << diet << endl;
return 0;
}