Java program for return statement

 public class Program{  

  

     int display(int l, int b)  

    {  

        return l*b;  

    }  

    public static void main(String[] args) {  

    Program e =new Program();  

    int area=e.display(3,5);

    System.out.println(area);  

}  

  

}


OUTPUT





Comments