Ask Question
25 December, 21:22

Assume that number is an int variable that has already been initialized. Write a statement that prints out the value of number in a field of 10 positions (right-justified within that field).

+5
Answers (1)
  1. 25 December, 21:41
    0
    cout<
    Explanation:

    Use the predefined function setw () to display the value of m in a print field of 10 positions. seven spaces are occupied by the first 7 positions and 100 is occupied by next 3 positions.

    Note: Make sure to add the iomanip header file for this to work.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Assume that number is an int variable that has already been initialized. Write a statement that prints out the value of number in a field ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers