format
#include <iostream>
using namespace std;
int main() {
int age = 30;
string name = "John";
// Left-align with 10 characters
cout << left << setw(10) << name << endl;
// Right-align with 10 characters
cout << right << setw(10) << age << endl;
// Zero-pad with 10 characters
cout << setfill('0') << setw(10) << age << endl;
// Show + sign for positive numbers
cout << showpos << age << endl;
// Show minus sign for negative numbers
cout << noshowpos << -age << endl;
return 0;
}