You are on page 1of 1

void method1()

{
int a= 1;
int b= 2;
int c= a+b;
system.out.println("The answer is: "+c);
}

void method2()
{
int a = 2;
int b = 3;
int c= a*b;
system.out.println("The result is: "+c);
}

You might also like