Side Navigation

X

Add Two Numbers

Adding two integers

public class BestOnlineLearning{
 
 public static int addTwoNumbers(int i, int j){          
    return i + j;
  }

  public static void main(String[] args){ 
    addTwoNumbers(56, 28); 
  }
}

 

 

You May Also Like

Comments

Leave a Comment

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>