Ok, so my beginning to C programming class has started and I have understood the concepts thus far. There is this one programming excercise I am having an issue with. The excercise asks you to create a program that results in the following output:
The only requirement is that I use a function that prints smile once, and then calling upon that function as many times as required to produce the above output. The following is what I have s o far
int main (void)
smile(), smile(), smile();
void smile (void)
This is producing an output of
I know I need a line break ("\n") some where in there, but where. I have tried putting it everywhere and cannot seem to get the require output.
BTW im using Ubuntu Intrepid Ibex server with GCC . My prog is compiling without error, I know I am missing something.
Your help is greatly appreciated!