import java.io.*;
public class jumlah
{
public static void main(String args[])
{
int A=2,B=5,C;
{
System.out.println("Penjumlahan Dua Bilangan");
System.out.println("------------------------");
System.out.println(" ");
System.out.println("Diketahui A="+A);
System.out.println("Diketahui B="+B);
C = A + B;
System.out.println(" ");
System.out.println("Hasil dari A+B = ?");
System.out.println("+A+" +""+B+" = "+C);
} }}
Categories:
java