java function calculate division of number October 10, 2017 Java No comments 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()); }} Share This: Facebook Twitter Google+ Stumble Digg Email ThisBlogThis!Share to XShare to Facebook
0 comments:
Post a Comment