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
Posted: Fri May 20, 2022 11:39 am
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
START
int star, i,
j;
char repeat;
DO
INPUT “star”;
FOR (i=1;i<=star;i++)
FOR (j=1;j<=star-i;j++)
" * ";
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