Hi, Having a heck of a time getting started with this one? Can anyone provide so
ID: 3640414 • Letter: H
Question
Hi,Having a heck of a time getting started with this one? Can anyone provide solution?
Thank you!
Write a program that reads in a single column of integers (from file) from a file (which I will supply). The name of the file containing the integers will be given at run-time as a command line argument. Your program will read in each number and determine if its even or odd and if it is prime. Write your results to a file in this format:
N is EVEN (ODD) and is PRIME or NOT PRIME
where N is the integer in question. Do this for every integer.
This is the .dat file
12
61
54
31
12
2
60
26
29
87
29
79
2
14
63
14
53
40
35
20