[Plain]
/* Start the comments in the program header (to avoid any problems encountered during the submission of blog posts, the slash used to indicate that the comments have been deleted)
* Copyright and version Declaration of the program
* All rights reserved.
* File name: txt. c
* Author: liuyongshui
* Question: the editing program outputs various asterisks.
* Question:
* Completion date: January 1, April 10, 2013
* Version No.: V1.0
*/
# Include <stdio. h>
Const int num = 5;
Int main ()
{
Int I;
Int j;
For (I = 1; I <= num; I ++)
{
For (j = 1; j <2 * num; j ++)
{
If (j> = num-I + 1 & j <= num + i-1)
{
Printf ("*");
}
Else
{
Printf ("");
}
}
Printf ("\ n ");
}
Return 0;
}
/* Start the comments in the program header (to avoid any problems encountered during the submission of blog posts, the slash used to indicate that the comments have been deleted)
* Copyright and version Declaration of the program
* All rights reserved.
* File name: txt. c
* Author: liuyongshui
* Question: the editing program outputs various asterisks.
* Question: (http://blog.csdn.net/sxhelijian/article/details/7936569 ).
* Completion date: January 1, April 10, 2013
* Version No.: V1.0
*/
# Include <stdio. h>
Const int num = 5;
Int main ()
{
Int I;
Int j;
For (I = 1; I <= num; I ++)
{
For (j = 1; j <2 * num; j ++)
{
If (j> = num-I + 1 & j <= num + i-1)
{
Printf ("*");
}
Else
{
Printf ("");
}
}
Printf ("\ n ");
}
Return 0;
}