Hello Beginners Like me.
I thought that I could give you some programs to do that I used to have a problem with them, because I didn't have the idea on what is the basic structure of the program. Anyway have fun doing them :D.
Program Number 1.
Make a program that will output the shape of a rectangular. The numbers of star on a single side of the square should be an input by the user.
Example
1 2 3 4 5 6 7
Enter The Number of Stars on The Side : 5
*****
* *
* *
* *
*****
Program Number 2.
Make a program that will output the shape of the letter "X". The numbers of star on each diagonal line should be an input by the user.
Example
1 2 3 4 5 6 7
Enter The Number of Stars on The Diagonal Lines : 5
* *
* *
*
* *
* *
Program Number 3.
Make the following shapes. Also the number of rows should be an input by the user.
I don't want the source codes. I want each one of the beginners to see if he can do this on his own. Thank you for reminding me. No one posts his source here. I have solved the first two examples before. 3.A is easy peasy :D. 3.B I just invented. Hehe