Im getting this error and im not sure how to fix it
In function ‘int main()’:
25:2: error: a function-definition is not allowed here before ‘{’ token
{
^
69:1: error: expected ‘}’ at end of input
}
^
Also, im adapting my code from an old assignment into my new assignment. My assignment is to "Write a program that prints all the prime numbers in the range of two user defined numbers: low and
high. Create a function that checks for a number to be prime or not."
so any tips on how to make my code do that would be greatly appreciated