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 the individual digits of the number and the sum of the digits. For example, it should output the individual digits of 3456 as 3 4 5 6, output the individual digits of -2345 as 2 3 4 5.
I NEED HELP ><!!!
2. Write a program that prompts the user to input an integer and then outputs both the individual digits of the number and the sum of the digits. For example, it should output the individual digits of 3456 as 3 4 5 6, output the individual digits of -2345 as 2 3 4 5.
I NEED HELP ><!!!
Comment