The void function provides a way of doing procedures.
If you do not want to return a value you must use the return type void and miss out the return statement. For Example:
void squares()
{int loop;
for (loop=1; loop<10; loop++);
printf("%d\n",loop*loop);
}
"squares" would be called in the main program such as:
main()
{
....
squares();
....
}
NOTE: We must have () even for no parameters !