if(x > 0 && y > 0&& z > 0)JOptionPane.showMessageDialog(null, "All Three Numbers Are Positve Sum: "+(x+y+z));
else{
if(x > 0 && y > 0 && z < 0)JOptionPane.showMessageDialog(null, "First number is positive, second is positive, third is not Q: "+(x*y));
else{
if(x > 0 && y < 0 && z > 0)JOptionPane.showMessageDialog(null, "First number is positive, second is not, third is positive Q: "+(x*z));
else{
if(x < 0 && y > 0 && z > 0)JOptionPane.showMessageDialog(null, "First number is not, second is positive, third is positive Q: "+(y*z));{
}
}
}
}
برچسب:
نویسنده: استخدام کار
تاريخ: پنجشنبه
22 بهمن
1394 ساعت: 10:38