解题思路:
注意事项:
参考代码:
import java.util.Scanner; public class Text { public static void main(String []args){ Scanner scanner=new Scanner(System.in); int x1=scanner.nextInt(); int y1=scanner.nextInt(); int x2=scanner.nextInt(); int y2=scanner.nextInt(); if (x1==x2) { System.out.println("INF"); } else { System.out.println((y2-y1)/(x2-x1)); } } }
0.0分
1 人评分