can teach??urgent....

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ahbaoku
    New Member
    • Feb 2007
    • 1

    can teach??urgent....

    i dun know how to write this program...who can help me????thanks alot..i need to pass up later....i am new in C++ programming.... ."""Write a program that prompts the user to enter a decimal number and then outputs this number rounded to two decimal places."""

    thanks alot who can teach me...
  • praveenholal
    New Member
    • Feb 2007
    • 19

    #2
    Originally posted by ahbaoku
    i dun know how to write this program...who can help me????thanks alot..i need to pass up later....i am new in C++ programming.... ."""Write a program that prompts the user to enter a decimal number and then outputs this number rounded to two decimal places."""

    thanks alot who can teach me...
    i think you have to use setw() function available with c++ . search it in google and you can find. you can also start learning programming with help of good text book.

    Comment

    • horace1
      Recognized Expert Top Contributor
      • Nov 2006
      • 1510

      #3
      Originally posted by ahbaoku
      i dun know how to write this program...who can help me????thanks alot..i need to pass up later....i am new in C++ programming.... ."""Write a program that prompts the user to enter a decimal number and then outputs this number rounded to two decimal places."""

      thanks alot who can teach me...
      the setprecision() manipulator in C++ allows you to set the number of digits printed after the decimal point
      http://www.cplusplus.c om/setprecision

      Comment

      Working...