We have a problem that asks us to write a void function that uses two nested for loops and the modulus operator to print out prime n integers. The function prototype is primeGen(int n). The only problem I am having is returning the value of i back to the main function can someone help me please?
http://codepad.org/KxutY78T