public class Solution {
public static void main(String[] args) {
hackSalary(7000);
}
public static void hackSalary(int a) {
int salary= a;
int newSalary = salary += 1000;
System.out.println("Your salary is: " + newSalary + " dollars per month.");
}
}
Solution
Resolved
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
Niveda
15 November 2019, 19:26
This is working. but the output is 8000 only. may be they confused us.
0
dinesh reddy
6 May 2019, 10:39
Thanks this is working.
0