Lol thanks for the reply but it is not the hour i want :P
If the user inputs 3 it shows this:
***
*
***
If the user inputs 5 it shows this:
*****
***
*
***
*****
and so on! Pls help xD
Edit: Sorry but the chat window doesnt use spaces!
So it means that what you see is the half of the hourglass, i mean like the egyptian ones with
stars like this one: *
See an hourglass from this photo: http://listverse.files.wordpress.com/2007/09/hourglass.jpg
I understand what an hour glass is, it is used to keep time. So if:
If the user inputs 3 it shows this:
***
*
***
If the user inputs 5 it shows this:
*****
***
*
***
*****
and so on
then what happens if you put 4? an error?
if it is an error than it is just a math algarithm which im sure you can figure out if you think about it. once you have this equation then for every input there should be an output and all you have to do is write a script to display a certain amount of *'s based on that output.
Try to do this.
A function that will print n characters. This will be the prototype void print_char(int quantity, char character);
So if you call it like print_char(4, 'o'); that output will be