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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!