int a[n]
- ,
.
#include <stdio.h>
#include <string.h>
int main(void)
{
const size_t N = 10;
for ( size_t i = 1; i <= N; i++ )
{
char s[i];
memset( s, '*', sizeof( s ) );
printf( "%*.*s\n", ( int )i, ( int )i, s );
}
return 0;
}
*
**
***
****
*****
******
*******
********
*********
**********
, , s[n]
.
source
share