谁有C++下OpenGL编程求圆和直线段的交点的程序啊...
2个回答
2016-01-10
展开全部
public static long getMinMultiple(long lFirstInput, long lSecondInput) {
return lFirstInput * lSecondInput / getMaxDivisor(lFirstInput, lSecondInput);
}
public static void main(String args[]) {
int first, second;
Scanner cin = new Scanner(System.in);
System.out.println("int first:");
first = cin.nextInt();
System.out.println("int second:");
second = cin.nextInt();
System.out.println(getMaxDivisor(first, second));
System.out.println(getMinMultiple(first, second));
}
}
return lFirstInput * lSecondInput / getMaxDivisor(lFirstInput, lSecondInput);
}
public static void main(String args[]) {
int first, second;
Scanner cin = new Scanner(System.in);
System.out.println("int first:");
first = cin.nextInt();
System.out.println("int second:");
second = cin.nextInt();
System.out.println(getMaxDivisor(first, second));
System.out.println(getMinMultiple(first, second));
}
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询