dear friends,
i have this assignment for class which is getting on my nerves every time i try to write the program.
the program is as follows...
there will be a variable 'n' which must be entered by the user. For example if a value of 7 is entered for 'n', then in the display it will print a sand-clock consisting of 7 stars on the first line. 5 stars in the second line. 3 stars in the third line. and 1 star in the fourth line. after that it will increase again like before. like 3 stars on the fifth line. 5 stars in the sixth line. and again seven stars in the seventh line.
*******
*****
***
*
***
*****
*******
THIS.
Please help me with this assignment.