Page 1 :
Thursday, May 20, 2021, 8:17 PM, , import java.util.*;, class rect, {, public static void main(), {, Scanner sc=new Scanner(System.in);, int ch,l,b;, System.out.println("1.Area");, System.out.println("2.Perimeter");, System.out.println("3.Diagonal");, System.out.println("Enter choice");, ch=sc.nextInt();, System.out.println("Enter length & breath");, l=sc.nextInt();, b=sc.nextInt();, if(ch==1), System.out.println("Area="+(l*b));, else if(ch==2), System.out.println("Perimeter="+2*(l+b));, else if(ch==3), System.out.println("Diagonal="+Math.sqrt(l*l+b*b));, else, System.out.println("Invalid choice");, }, }, , import java.util.*;, class calculator, {, public static void main(), {, Scanner sc=new Scanner(System.in);, int a,b;, , COMBINED ICSE 246 Page 1
Page 4 :
Evaluate the following expression if the value ofx=2,y=3 and z=1. [2], v=x+ –z+y+ + +y, , What is the value of y after evaluating the expression given below ?, y + = + +y+y– - –y; when int y=8, , COMBINED ICSE 246 Page 4