Question
Write a C++ code to read the file xyz.txt find the following: Find the smallest Odd. Find the largest Prime. Find all Evens that divides
Write a C++ code to read the file xyz.txt find the following:
Find the smallest Odd.
Find the largest Prime.
Find all Evens that divides by 6.
and write the results to another file called results.txt. Please arrange the results and title them in the results.txt file.
-------- numbers to put in the txt file :
256
2345 678
45 678 90 9685
4 4 90 45 57
56 78 89 90 09 02 34 67
23 456 457 569 458 2356 56
43 54 65 76 87 98 643 647 653
43 76 46 48 59 27
26 36 49 57 34 86
28 65 46 34 6 24 45 56
4 7 9 5 659 661 673
45 76 641 691 14391459
577 587 593 599 601 607
65 87 1447 1451 1453
9 11 709 719 727 1399
7 1427 1429 1433 56 12
13 701 1409 1423
15 613 617 619 631 1471
17 1481 1483 1487 1489
19 677 683
98 453 342
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started