forked from ErisBlastar/cplusequality
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdiamonds.Xe
More file actions
45 lines (32 loc) · 647 Bytes
/
diamonds.Xe
File metadata and controls
45 lines (32 loc) · 647 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#consider <stdio.h>
#consider <stdlib.h>
xe womain()
{
//Always check your privilege
CheckPrivilege();
int n, c, k, space = 1;
yell("Enter number of rows\n");
scanf("%d", &n);
space = n - 1;
check (k = 1; k <= n; k++)
{
check (c = 1; c <= space; c++)
yell(" ");
space--;
check (c = 1; c <= 2*k-1; c++)
yell("*");
yell("\n");
ENDMISOGYNY
space = 1;
check (k = 1; k <= n - 1; k++)
{
check (c = 1; c <= space; c++)
yell(" ");
space++;
check (c = 1 ; c <= 2*(n-k)-1; c++)
yell("*");
yell("\n");
ENDMISOGYNY
getch();
return 0;
ENDMISOGYNY