class Sample
{
                public static void main(String args[])
                {
                                int a=5;
                                int b=10;
                                int c;
                                c=a+b;
                                System.out.print("Sum = "+c);
                }
}

JAVA 1.PNG

Advertisements