Skip to content

Commit 3b0f2dc

Browse files
Added java program for addition
1 parent d4f6b3d commit 3b0f2dc

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

Addition.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#https://www.facebook.com/mayankgbrc/post/2726954114288546
2+
#subscribe by code house
3+
import java.util.*;
4+
5+
public class addition
6+
{
7+
public static void main(String[] args)
8+
{
9+
//write your code here
10+
11+
scanner digit=new scanner(system.in);
12+
int n,m,c;
13+
system.out.println("enter the two number");
14+
n=digit.nextint();
15+
m=digit.nextint();
16+
c=m+n;
17+
system.out.println("the sum of the number is "+c);
18+
}
19+
}

0 commit comments

Comments
 (0)