Excellent Code
simply excellent ...
Pages
Home
Request for more
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment