View Code of Problem 70

import java.util.Scanner;

public class Main
{
  public static void main(String[] args)
  {
    Scanner scan=new Scanner(System.in);
    int n=scan.nextInt();
    double d=0.0;
    if(n<=100000)
    {
      d=n*10%;

    }
     System.out.print((int)d);
  }
}
/*
Main.java:12: error: illegal start of expression
      d=n*10%;
             ^
1 error
*/

Double click to view unformatted code.


Back to problem 70