Ask 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 of 10 positions (right-justified within that field).

+2
Answers (1)
  1. 30 May, 11:01
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers