Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Write a program to assign values to a logical variable, a character variable, an integer variable, a single-precision floating-point variable and a double-precision floating-point variable, and displa
Write a program to assign values to a logical variable, a character variable, an integer variable, a single-precision floating-point variable and a double-precision floating-point variable, and displa
Write a program to assign values to a logical variable, a character variable, an integer variable, a single-precision floating-point variable and a double-precision floating-point variable, and display them. Boolean t = true; //Logical variable

Char x =' a// character variable

int num = 10; //Integer variable

float u = 10.6; //Single-precision floating-point variable

double y = 1 1 1.5; //Double-precision floating-point variable assignment

system . out . println(t);

system . out . println(x);

system . out . println(num);

system . out . println(u);

system . out . println(y);