Computer Science, asked by bhavanabangs88, 3 months ago

public static void main(String args[]) {

        Scanner in = new Scanner(System.in);

        System.out.print("Enter a number: ");

        int n = in.nextInt();

        int result = 100 / n;

        System.out.println("Result = " + result);

what is the error in the following pgrm​

Answers

Answered by dipanshukhande
1

Answer:

You have not put ln in system.out.println in 3rd line

Explanation:

that's the problem

Answered by Anonymous
2

Explanation:

I think first of all u have to write the class for the program and at last u have to close all the brackets

Similar questions