4. CREATE A C++ PROGRAM THAT THE USER WILL INPUT A SET OF POSITIVE INTEGERS (0 TO TERMINATE) AND THE OUTPUT IS TO COUNT THE NUMBER OF PRIME AND COMPOSITE NUMBERS. EX: INPUT: INPUT: 25 27 49 7 23 14 29...


Answer the following:


4. CREATE A C++ PROGRAM THAT THE USER WILL INPUT A SET OF POSITIVE INTEGERS (0 TO<br>TERMINATE) AND THE OUTPUT IS TO COUNT THE NUMBER OF PRIME AND COMPOSITE<br>NUMBERS.<br>EX:<br>INPUT:<br>INPUT:<br>25 27 49 7 23 14 29 80<br>11 13 17 31 39 47 0<br>OUTPUT:<br>OUTPUT:<br>PRIME: 5<br>PRIME: 3<br>COMPOSITE: 5<br>COMPOSITE: 1<br>

Extracted text: 4. CREATE A C++ PROGRAM THAT THE USER WILL INPUT A SET OF POSITIVE INTEGERS (0 TO TERMINATE) AND THE OUTPUT IS TO COUNT THE NUMBER OF PRIME AND COMPOSITE NUMBERS. EX: INPUT: INPUT: 25 27 49 7 23 14 29 80 11 13 17 31 39 47 0 OUTPUT: OUTPUT: PRIME: 5 PRIME: 3 COMPOSITE: 5 COMPOSITE: 1

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here