I'm learning about using if-else else-if conditions and I am wondering if there is anyway to simplify these statement below. Can I combine all of them into one statement?
if (a < 0) {
a = 1;
}
if (b < 0) {
b = 1;
}
if (c < 0) {
c = 1;
}