hi
how are u all
this is my program
import javax.swing.*;
public class Qustion2 {
public static void main (String args[]){
double x =2/3;
double y = (3*x*x)-(8*x)+4;
JOptionPane.showMessageDialog(null,"At x= " + x +" the value is " + y);
}
}
Mathematically when i substitute x =2/3
i get result equal zero but here i didn't get it
any body tell me why ?