Arithmatic Operators

computer science


class Problem1{ public static void main( String[] args ){ int a=5, b=3, c; double x=2.2, y=1.3, z; c = fcn1(a, b); b = fcn2(x, y); z = fcn2(c, b); System.out.println("a="+a+", b="+b+", c="+c); System.out.println("x="+x+", y="+y+", z="+z); System.out.println("bye!"); } static int fcn1(int i, int j){ int k = (i++) + (++j); return k+2; } static int fcn2(double u, double v){ return fcn1((int)(u+v), 3); } static double fcn2(int r, int s){ return (double)fcn1(r+s, 3); } }

Related Questions in computer science category

The ready solutions purchased from Library are already used solutions. Please do not submit them directly as it may lead to plagiarism. Once paid, the solution file download link will be sent to your provided email. Please either use them for learning purpose or re-write them in your own language. In case if you haven't get the email, do let us know via chat support.