摘要: public class Solution { public static void main(String[] args) { Scanner ip = new Scanner(System.in); System.out.print("Enter radius: "); double radius = ip.nextDouble(); double circumference = 2 * 3. 阅读全文
posted @ 2019-12-09 19:58 anobscureretreat 阅读(147) 评论(0) 推荐(0)
摘要: public class Solution { public static void main(String[] args) { Scanner ip = new Scanner(System.in); System.out.print("Enter a number: "); double n = ip.nextDouble(); ... 阅读全文
posted @ 2019-12-09 19:55 anobscureretreat 阅读(138) 评论(0) 推荐(0)
摘要: public class Solution { public static void main(String[] args) { Scanner ip = new Scanner(System.in); double input = 0; int count = 0; double sum = 0; while (input != -1) { System.out.print("Enter inp 阅读全文
posted @ 2019-12-09 19:49 anobscureretreat 阅读(142) 评论(0) 推荐(0)
摘要: public class Solution { public static void main(String[] args) { Scanner ip = new Scanner(System.in); System.out.print("Enter A: "); int a = ip.nextInt(); System.out.print("Enter B: "); int b = ip.nex 阅读全文
posted @ 2019-12-09 19:47 anobscureretreat 阅读(105) 评论(0) 推荐(0)
摘要: public class Solution { public static void main(String[] args) { int x = 11, y = 7; int res = 1; for (int i = 1; i <= y; i++) res = i * x; System.out.println("The product of " + x + " and " + y + " is 阅读全文
posted @ 2019-12-09 19:43 anobscureretreat 阅读(164) 评论(0) 推荐(0)
摘要: 输出 阅读全文
posted @ 2019-12-09 12:30 anobscureretreat 阅读(157) 评论(0) 推荐(0)