Question: algorithm Write a program that reads 3 numbers from a file those numbers can be positive or negative and the numbers in the input file
algorithm
Write a program that reads 3 numbers from a file those numbers can be positive or negative and the numbers in the input file will either be 1 digit or 3 digits., if the number was positive and had 3 digits in it then you will need to print it in reverse, if it was positive with 1 digit in it then you print it as it is, if it was negative with 3 digits in it then you need change it to a positive number and then print it in reverse, and if it was negative with 1 digit then you print it as a positive number. All the prints should be in an output file input file: -145 -3 265 output file: 541 3 562
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
