import javax.swing.*;

public class Jumlah
{
public static void main(String[] args)
{
String stra;
int i,s;
stra = JOptionPane.showInputDialog(“Input Angka : “);
int a = Integer.parseInt(stra);
s=0;
for (i=0;i<=a;i++)
{
s=s+i;
if (i==a)
{
System.out.print(i + “=”);
}
else
{
System.out.print(i + “+”);
}
}
System.out.print(s);
}
}