Twitter Feed Facebook Google Plus Youtube

Adsense responsive

Recent Post below header

Friday, 21 June 2013

JAVA PROGRAM: TO CALCULATE CIRCUMFERENCE OF A CIRCLE

Java Program


CODING OF CALCULATE CIRCUMFERENCE BUTTON(jButton1)

        double cm,r;
        r=Double.parseDouble(jTextField1.getText());
        cm=2*3.14*r;
        jTextField2.setText(" "+cm);


CODING OF CLEAR BUTTON(jButton2)

        jTextField1.setText(" ");
        jTextField2.setText(" ");
   

CODING OF EXIT BUTTON(jButton3)   

        System.exit(0);


Java Program Coding
CODING

Java Program Output
RUNNING


For any query or suggestion please comment below...

No comments:

Post a Comment