Pay raise
package com.codegym.task.task02.task0205;
/*
Pay raise
*/
public class Solution {
public static void main(String[] args) {
hackSalary(7000);
}
public static void hackSalary(int a) {
int b=a+1000;
System.out.println("Your salary is " +(b+1000)+ " dollars per month ");
}
}
I have tried multiple spots
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Guadalupe Gagnon
19 November 2019, 15:49
The code above increases by 2000 but the instructions say it should increase by only 1000.
0