Java To Flowchart
Java To Flowchart
in)
System.out.print("masukkan input :")
int input = in.nextInt()
int lipat = 1
String output = "1"
int i = 2
i <= input
True False
String temp = Integer.toString(i) System.out.println("output : " + output)
i % 3 == 1 || i % 3 == 2
True False
int j = 1 i % 3 == 0
True
int j = 1
j < lipat
False True
True
output = output + "+" + temp j++
i++