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*0.1;

    }
     System.out.print((int)d);
  }
}

Double click to view unformatted code.


Back to problem 70