import java.util.Scanner;
public static void main(String[] args){
Scanner in = new Scanner(System.in);
System.out.print("nhap so nguyen:");
System.out.print("nhap so thuc:");
soThuc = in.nextDouble();
System.out.println("so nguyen = "+soNguyen);
System.out.println("so thuc = "+soThuc);
import java.util.Scanner;
public static void main(String[] args){
Scanner in = new Scanner(System.in);
System.out.print("Nhap so nguyen:");
System.out.print("Nhap so thuc:");
soThuc = in.nextDouble();
System.out.print("Nhap sau ky tu:");
char sauKyTu = in.next().charAt(0);
System.out.println("so nguyen:"+soNguyen);
System.out.println("so thuc:"+soThuc);
System.out.print("sau ky tu:"+ sauKyTu);
import java.util.Scanner;
public static void main(String[] args){
Scanner in = new Scanner(System.in);
System.out.print("Nhap n1=");
System.out.print("Nhap m1=");
System.out.print("Nhap n2=");
System.out.print("Nhap m2=");
int tongSoNguyen = n1+m1;
double tongSoThuc = n2+m2;
double tong = (double)(n1+n2);
System.out.println("tong so nguyen="+tongSoNguyen);
System.out.println("tong so thuc="+tongSoThuc);
System.out.println("tong ="+tong);
import java.util.Scanner;
public static void main(String[] args){
Scanner in = new Scanner(System.in);
System.out.print("so1=");
System.out.print("so2=");
System.out.print("so3=");
System.out.print("max="+max);
import java.util.Scanner;
import static java.lang.StrictMath.sqrt;
public static void main(String[] args){
Scanner in = new Scanner(System.in);
System.out.println("phuong trinh bac 2:"+a+"x^2"+b+"x"+c+"=0");
System.out.println("phuong trinh bac nhat: "+b+"x"+c);
System.out.println("nghiem="+nghiem);
float delta = b*b - 4*a*c;
System.out.println("vo nghiem");
float nghiemkep = -b/(2*a);
System.out.println("nghiem="+nghiemkep);
float nghiem1 = (float) (-b + sqrt(delta))/(2*a);
float nghiem2 = (float) (-b - sqrt(delta))/(2*a);
System.out.println("nghiem1="+nghiem1);
System.out.println("nghiem2="+nghiem2);