Sum of Two numbers in java



public class Sum{

public static void main(String args[]){

int f1,s1,sum;

f1=10;

s1= 20;

sum=f1+s1;                             where f1 and s1 are variables...

System.out.println("Sum of f1 and s1 :"+sum);

}

}

Comments