خرید بک لینک

Vote count: -2

I want to write a program in C that prints an asterisk in C.. the user enters an odd number, then the output will be an asterisk, for example: if the user entered the number 7 then the output will be:

*  *  *
 * * *
  ***
*******
  ***
 * * *
*  *  *

note that the weight/the height of the asterisk = 7 and if he entered the number 5 for example:

* * *
 ***
*****
 ***
* * *

the problem that I face is that I didn't figure out how to 'change' the litte asterisk places, and how to build this program using loops only..

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 10 فروردين 1395 ساعت: 4:59

صفحه بندی