I want to use a loop(n) function
The loop function has a special meaning to the Arduino environment. Use a different name.
Can I nest loops?
You can't nest functions.
Do loops only accept char as a value?
No
To do something n times, use a for loop.
Pete