IF condition Using Netbeans
Kindly assist, my output is not as expected, where did i go wrong,am using
NETBEANS GUI. PA,B,D,B1,D1 are double variables: the First if condition
evaluates correctly, but the else (B
PA =((1.1 * P2) / (1.46 * P3));
B = 3 * P4;
D = P4;
B1 = PA + 0.02;
D1 = ((B - P4) / 2);
if (B > PA) {
txtB.setText("" + Round(B,2));
txtD.setText("" + Round(D,2));
}else {
txtB.setText("" + Round(B1,2));
txtD.setText("" + Round(D1,2));
}
No comments:
Post a Comment