How to add 2 numbers in JAVA? class sum { public static void main(String[] args) { int a=5; int b=6; int c; c=a+b; System.out.println(c); } } Output: 11
No comments:
If you have any doubt or query ,comment below: