We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Java
- Introduction
- Java Datatypes
- Discussions
Java Datatypes
Java Datatypes
Sort by
recency
|
1537 Discussions
|
Please Login in order to post a comment
` import java.util.*;
class Solution{ public static void main(String []argh) { Scanner sc = new Scanner(System.in); int t=sc.nextInt(); for(int i=0;i println(x+" can be fitted in:");
} `
`
public class Sollution {
/213333333333333333333333333333333333- only this o/p is getting wrong/ } } scan.close(); } }
my code is correct and its executing properly but here its showing as wrong output,why?
import java.util.Scanner;
class Solution{ public static void main(String []args) { code is right why the o/p is wrong its showing Scanner sc = new Scanner(System.in); int t=sc.nextInt();
}
Scanner sc = new Scanner(System.in);
}