java sum of two integer


SUBMITTED BY: GBPATEL

DATE: June 30, 2016, 7:46 a.m.

FORMAT: Java

SIZE: 276 Bytes

HITS: 934

  1. java programing sum of two integer value
  2. public class ridz
  3. {
  4. int a=2;
  5. int b=3;
  6. public void sum()
  7. {
  8. System.out.print("sum of two num="+(a+b));
  9. }
  10. public static void main(String[]args)
  11. {
  12. ridz object =new ridz();
  13. object.sum();
  14. }
  15. }
  16. out put
  17. sum of two num=5

comments powered by Disqus