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......
User Profile
Collapse
-
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...
No activity results to display
Show More
Leave a comment: