Answers for "c++ how to use setw"

C++
2

setw in c++

#include<iostream>
#inclue<iomanip>
// Introducing the concept of setw//
using namespace std;
int main()
{
  int i = 13;
  cout<<setw(19)<<i;
}
Posted by: Guest on August-29-2021
0

SETW C++

#include <iostream>
  #include <iomanip>
  using namespace std;


int main()
{
  cout<< setw(19)<< "77";
}
Posted by: Guest on April-06-2022

Browse Popular Code Answers by Language