Skip to content

Commit 80b8d86

Browse files
author
Raju Dawadi
committed
Update 1.3lab.cpp
1 parent cab529e commit 80b8d86

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

1.3lab.cpp

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,27 @@
1-
//
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+
cout << endl;
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+
cout << endl;
25+
26+
27+
}

0 commit comments

Comments
 (0)