- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSolveMeFirst.java
More file actions
Latest commit
30 lines (27 loc) · 593 Bytes
/
Copy pathSolveMeFirst.java
File metadata and controls
30 lines (27 loc) · 593 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* Lol this was just a warm up problem. I won't even write the problem
* statement for it.
*/
importjava.io.*;
importjava.util.*;
importjava.text.*;
importjava.math.*;
importjava.util.regex.*;
publicclassSolveMeFirst
{
staticintsolveMeFirst(inta, intb)
{
// Hint: Type return a+b; below
returna + b;
}
publicstaticvoidmain(String[] args)
{
Scannerin = newScanner(System.in);
inta;
a = in.nextInt();
intb;
b = in.nextInt();
intsum;
sum = solveMeFirst(a, b);
System.out.println(sum);
}
}