|
|||
double x;. double s;. double v;. System.out.println(Введитепервоечисло);. x = num.nextDouble();. System.out.println(Введитевтороечисло);. s = num.nextDouble();. System.out.println(ответ);. System.odouble x; double s; double v; System. out. println(" Введитепервоечисло" ); x = num. nextDouble(); System. out. println(" Введитевтороечисло" ); s = num. nextDouble(); v = x * s; System. out. println(" ответ" ); System. out. println(v); break; //2 case 2: double c; double r; System. out. println(" Введите первое число" ); c = num. nextDouble(); double d; System. out. println(" Введите второе число" ); d = num. nextDouble(); r = c / d; System. out. println(" ответ" ); System. out. println(r); break; //3 case 3: double m, e, f; System. out. println(" Введите первое число" ); e = num. nextDouble(); System. out. println(" Введите второе число" ); f = num. nextDouble(); m = e - f; System. out. println(" ответ" ); System. out. println(m); break; //4 case 4: double u, w, y; System. out. println(" Введите первое число" ); w = num. nextDouble(); System. out. println(" Введите второе число" ); y = num. nextDouble(); u = w + y; System. out. println(" ответ" ); System. out. println(u); break; //5 case 5: double se; System. out. println(" Введитечисло" ); se = num. nextDouble(); System. out. println(" ответ" ); System. out. println(Math. cos(se)); break; //6 case 6: doubleji; System. out. println(" Введитечисло" ); ji= num. nextDouble(); System. out. println(" ответ" ); System. out. println(Math. tan(ji)); break; //7 case 7: doubledr; System. out. println(" Введитечисло" ); dr = num. nextDouble(); System. out. println(" ответ" ); System. out. println(Math. sin(dr)); break; //8 case 8: doubleft; System. out. println(" Введитечисло" ); ft = num. nextDouble(); System. out. println(" ответ" ); System. out. println(1. 0 / Math. tan(ft)); break;
|
|||
|