|
12345678910111213141516171819202122232425 |
- import java.io.File;
- import java.io.FileNotFoundException;
- import java.util.Scanner;
-
- public class FuelFinder{
- public static void main(String[] vala){
- File file = new File("input.txt");
- try {
- Scanner sc = new Scanner(file);
- while (sc.hasNextLine()) {
- int i = sc.nextInt();
- System.out.println(i);
- }
- sc.close();
- }
- catch (FileNotFoundException e) {
- e.printStackTrace();
- }
- }
-
- public static int FuelNeeded(int inp){
- return ((inp/3)-2);
- }
- }
-
|