-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2757.cpp
More file actions
25 lines (16 loc) · 776 Bytes
/
Copy path2757.cpp
File metadata and controls
25 lines (16 loc) · 776 Bytes
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
#include <stdio.h>
#include <iostream>
#include <iomanip>
using namespace std;
int main() {
int G, P, H; // to cansando de usar abc e xyz :(
cin >> G;
cin >> P;
cin >> H;
// zeros a esquerda
cout << "A = " << G << ", B = " << P << ", C = " << H << endl;
cout << "A = " << setw(10) << setfill(' ') << G << ", B = " << setw(10) << setfill(' ') << P << ", C = " << setw(10) << setfill(' ') << H << endl;
cout << "A = " << internal << setw(10) << setfill('0') << G << ", B = " << setw(10) << setfill('0') << P << ", C = " << setw(10) << setfill('0') << H << endl;
cout << left << "A = " << setw(10) << setfill(' ') << G << ", B = " << setw(10) << setfill(' ') << P << ", C = " << setw(10) << setfill(' ') << H << endl;
return 0;
}