We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cab529e commit 80b8d86Copy full SHA for 80b8d86
1.3lab.cpp
@@ -1 +1,27 @@
1
-//
+#include <iostream>
2
+#include <iomanip>
3
+
4
+using namespace std;
5
6
+int main() {
7
8
+ const int Width = 20;
9
10
+ cout << left << setw(Width) << "S.N";
11
+ cout << left << setw(Width) << "Roll Number";
12
+ cout << left << setw(Width) << "Name";
13
+ cout << left << setw(Width) << "Age";
14
+ cout << endl;
15
+ cout << left << setw(Width) << 1;
16
+ cout << left << setw(Width) << 101;
17
+ cout << left << setw(Width) << "Ram";
18
+ cout << left << setw(Width) << 25;
19
20
+ cout << left << setw(Width) << 2;
21
+ cout << left << setw(Width) << 102;
22
+ cout << left << setw(Width) << "Sita";
23
+ cout << left << setw(Width) << "23";
24
25
26
27
+}
0 commit comments