TabriZ
Знаток
(293),
на голосовании
4 месяца назад
import java.util.Scanner;
public class Main { public static void main(String[] args) { String str= "10 * 10"; Scanner ed = new Scanner(str); double a = ed.nextDouble(); String per = ed.nextLine(); double b = ed.nextDouble(); System.out.println(a); System.out.println(per); System.out.println(b);
public class Main {
public static void main(String[] args) {
String str= "10 * 10";
Scanner ed = new Scanner(str);
double a = ed.nextDouble();
String per = ed.nextLine();
double b = ed.nextDouble();
System.out.println(a);
System.out.println(per);
System.out.println(b);
}
}