Code:
public static void main(String[] args) {
// TODO code application logic here
Scanner input = new Scanner(System.in);
int noOfCases = input.nextInt();
System.out.println("no of c is :" + noOfCases);
for (int i = 0; i < noOfCases; i++) {
Scanner in = new Scanner(System.in);
credit = in.nextInt();
System.out.println("no of cr is :" + credit);
noOfItems = in.nextInt();
System.out.println("no of it is :" + noOfItems);
prices = in.nextLine();
System.out.println("no of pr is :" + prices);
// pri(prices);
}
}
Comment