Tuesday, 10 October 2017

java function calculate division of number


class division
{
     double num1,num2;
    double divi()
{
     num1=90;
     num2=21;
      return num1/num2;
}}
   public class function3
  {
     public static void main(String args[])
{
       division p = new division();
     System.out.println("The product is ="+p.divi());
}}

0 comments:

Post a Comment