-->
当前位置:首页 > 题库

PROGRAMMING:Correction question 01

Luz5年前 (2021-05-10)题库420
Please correct the following program segments with syntax errors and output the sample results as required.
```
public class Main {
public static void main(String[] args) {
int i;
int k=100.0;
int j=i+1;
System.out.printf("j is " + j + " and k is " + k);
}
}
```
###Input format:
No input
###Output format:
Output results: J is 1 and K is 100
###Input example:
```in
No input
```
###Output example:
```out
j is 1 and k is 100
```







answer:If there is no answer, please comment