C++ : assign a=137. And display value of a as: +####137


#include<iostream>
#include<iomanip>
#include<conio.h>
using namespace std;
int main()
{
int a=137;
cout<<"+"<<setw(7)<<setfill('#')<<right<<a;
        getch();
return(0);
}

No comments:

Post a Comment