Ask Question
6 December, 06:35

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).

+2
Answers (1)
  1. 6 December, 07:44
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers