P
P
PRAIT2019-07-01 16:03:38
Java
PRAIT, 2019-07-01 16:03:38

Multiplication table, are there jambs in the code?

Hello, I wrote a simple program that multiplies two numbers and displays the result. Wrote in VScode and it doesn't work there, displays "Unrecognized request: { _request: evaluate }". And in netBeans, the code works well and without jambs.
Could you guys tell me what's wrong with the code? I will be grateful!

import java.util.Scanner;
public class Tabl {
  public static void main (String [] args) {
    Scanner sc = new Scanner(System.in);
    int number, i;
    System.out.println("Please enter number");
    number = sc.nextInt();
    System.out.println("Please enter number");
    i = sc.nextInt();
    System.out.println(number + " * " +i+ " = " +number * i);
  }
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Cheypnow, 2019-07-01
@PRAIT

No jamb in the code. Otherwise, it would not work in NetBeans either.
Here they write that the problem is in the VS Code console https://stackoverflow.com/questions/52532347/unrec...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question