import java.util.*;
import java.lang.*;
import java.io.*;
// The main method must be in a class named "Main".
class Main {
static int sum (int x , int y) {
int z;
if ( x>y)
z= x+y;
else
z= x-y;
return z;
}
static void change(int s){
// void hum tb use krte jb hume koi return nhi chahiye ho
s = 66;
}
public static void main(String[] args) {
System.out.println("Hello world!");
int a,b,c;
a= 6;
b=77;
//ab yha bar bar hum woh logic nhi likhenge
c= sum(a,b);
System.out.println(c);
int a1= 77;
int b1 = 67;
int c1= sum(a1,b1);
System.out.println(c1);
// value change or not in array
int b3 = 13;
change (b3);
System.out.println(b3);
}
}
To embed this program on your website, copy the following code and paste it into your website's HTML: