numbers.
1. Read each number in the file and print them on the
screen. (1 points)
The output should be:
Your selection (1 -> 2): 7580
1
7434
data.txt
3928
OUTPUT
6558
814
1720
9059
7064
1278
328
9135
63
2776
984
407
2792
980
5473
8237
9576
6952
9650
3178
15
9503
9707
9573
371
4393
4859
8128
3822
1427
7658
4223
7954
9159
1877
7924
4903
9596
4461
561
6467
370
7097
8493
9341
1
153
Zoom
- FUO
2. Prints a list of Armstrong numbers (an Armstrong
number is a number that is equal to the sum of its
own digits raised to the power of the number of
digits eg. 153=13+53 +33=1+125+27=153) sorted in the
file. (2 points)
The output should be:
+ 100%
Close