write C program to read numbers from user until -1 is encountered. Count the number of prime numbers and composite numbers entered by the user and display the result.
For example, if the user gives the input as :
Enter numbers up to -1 :
Enter numbers up to -1: 11 17 19 21 -1
total prime = 3
total composite = 1
1
Expert's answer
2020-06-08T21:20:34-0400
Dear harry , your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order
Comments
Leave a comment