shabaduday

Problem A | User-Controlled Field

Aug 8th, 2014
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3. using namespace std;
  4. int main()
  5. {
  6.    int n;
  7.    cout << "Enter field size: ";
  8.    cin >> n;
  9.    cout << setw(n) << setfill('@') << "CAPSULE" << endl;
  10.    return 0;
  11. }
Add Comment
Please, Sign In to add comment