Computer Science, asked by arnav25713, 1 month ago

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 krishna20072007
0

let salary = 4900

if (salary < 5000) {

salary+=1000

console.log(salary)

}

else {

console.log(salary)

}

This is written in JavaScript

Similar questions