Tipus correctes
Submit solution
Points:
10
Time limit:
5.0s
Memory limit:
256M
Author:
Problem type
Allowed languages
C#, Go, Java, Python
Completa el següent programa afegint els tipus correctes a cada variable:
import java.util.Locale;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
scanner.useLocale(Locale.ENGLISH);
y = 2020;
m = "Abril";
t = 37.5f;
s = false;
c = ';';
System.out.println(y);
System.out.println(m);
System.out.println(t);
System.out.println(s);
System.out.println(c);
}
}
Input Format
-
Constraints
-
Output Format
-
Sample Output 0
2020
Abril
37.5
false
;
Autoria: Gerard Falcó
CC BY-NC-SA 4.0