1.
public
class belajarCyclomaticComplexity
{
2.
public static void main(String[] args)
{
3.
int baris,m;
4.
for (int i=1; i<=7; i++)
{
5.
if(i<5 span="">5>
{
6.
for (int j=1; j<=4; j++)
{
7.
if
(j<=i)
8.
System.out.print("*");
9.
else
10. System.out.print("
");
}
}
11. Else
12. { for (int j=1; j<=4; j++)
{
13. m=i+j;
14. if (m<=8)
15. System.out.print("*");
16. else
17. System.out.print("
");
}
}
18. System.out.println();
}
}
}
Node dan line dari program
Tidak ada komentar:
Posting Komentar