We can print some images as you like.
[Cpp]
# Include <stdio. h>
# Include <math. h>
/*
Print some images
*/
Void printSomeGraph ()
{
Char a [10] = {'*','*','*','*','*','*','*','*', '*'};\
// 1
For (int I = 0; I <10; I ++)
{
For (int j = 0; j <I; j ++)
Printf ("");
Printf ("% s \ n", );
}
// 2
Printf ("---------------------------------- \ n ");
For (I = 0; I <10; I ++)
{
If (I % 2! = 0)
For (int j = 0; j <I; j ++)
Printf ("");
Printf ("% s \ n", );
}
// 3
Printf ("---------------------------------- \ n ");
Int k = 0;
For (I = 0; I <6; I ++)
{
For (int j = 0; j <I; j ++)
Printf ("");
Printf ("#");
For (j = 10-i-k; j> = 0; j --)
Printf ("*");
K ++;
Printf ("# \ n ");
}
// 4
Printf ("---------------------------------- \ n ");
Double y = 1;
Int x, m;
For (; y> =-1; y-= 0.1)
{
M = acos (y) * 10;
For (x = 0; x <m; x ++)
Printf ("");
Printf ("*");
For (; x <62-m; x ++)
Printf ("");
Printf ("* \ n ");
}
// 5
Printf ("---------------------------------- \ n ");
K = 0;
For (I = 9; I> 0; I --)
{
For (int j = I; j> 0; j --)
Printf ("");
For (j = 0; j <= 9-i + k; j ++)
Printf ("*");
K ++;
Printf ("\ n ");
}
}
From mzlqh's column