Allocate the memory at runtime to store 10 integer numbers and ask values from the user. Now, create another array of same size and fill the elements based on the processing of elements in the first array as follows:
• If the number at any location is prime, then store ‘P’ at the same location in second array
• If the number is not prime but if it is even, then store ‘E’
• In case above conditions are not true, then store ‘N’
1
Expert's answer
2020-11-16T00:11:21-0500
Dear Unknown, 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