write an algorithm to accept the salary of a person and if salary is below ₹5,000 add at least₹1000 to it and print it
Answers
Answered by
0
let salary = 4900
if (salary < 5000) {
salary+=1000
console.log(salary)
}
else {
console.log(salary)
}
This is written in JavaScript
Similar questions