Given a Program Design Language (PDL) to print a star:
START
int star, i,
j;
char repeat;
DO
INPUT “star”;
FOR (i=1;i<=star;i++)
FOR (j=1;j<=star-i;j++)
PRINT
" * ";
ENDFOR
ENDFOR
CETAK “Press Y/y to repeat";
INPUT repeat;
WHILE (repeat=='Y' OR repeat =='y');
END
Please create the flowgraph and find the cyclometic
complexity
Given a Program Design Language (PDL) to print a star: START int star, i, j; char repeat; DO INPUT “star”; FOR (i=1;i<=s
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am