setw() manipulator

Suman Barik
0

#include <iostream>


#include<iomanip>


using namespace std;


int main() {


  int a = 5,b = 27,c = 449;

  

  cout << "The value of a is : " << setw(3) << a << "\n\n";

  

  cout << "The value of b is : " << setw(3) << b << "\n\n";

  

  cout << "The value of c is : " << setw(3) << c << "\n\n";

  

  return 0;

  

}

Post a Comment

0Comments
Post a Comment (0)