User Profile

Collapse

Profile Sidebar

Collapse
ken62310
ken62310
Last Activity: Nov 26 '06, 11:43 PM
Joined: Oct 23 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • in the first one, i don't know how to take the value from a file and put the value to a file.
    in the second one, how to get each digit of the integer......
    See more | Go to post

    Leave a comment:


  • Assignment: Moving values between files and integer to digit

    1. write a program that tests the value (between 1 and 12 ) of an int variable num1 (take the value from the a file). If the value is 10, square num1.If it is 9, read a new value into num1. If it is 2 or 3, multiply num1 by 99 and print out the result. In all the other cases, print ++num1. (take the value from a file and write the results into a file)

    2. Write a program that prompts the user to input an integer and then outputs both...
    See more | Go to post
No activity results to display
Show More
Working...