Legion of Learners
www.lol-101.com
Home
Classrooms
Courses
About Us
Executive Team
Board Members
Resources
More
Use tab to navigate through the menu items.
Log In
Forum Comments
Intro to Java 7/25 Homework
In Java Question Bank
jonathan.cheng.2004
Jul 27, 2020
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int number = in.nextInt(); int actualNumber; for (int i = 3; i <= number; i = i + 3) System.out.println(i); } }
0
0
Intro to Java 7/18 Homework
In Java Question Bank
jonathan.cheng.2004
Jul 20, 2020
import java.util.*; class Main { public static void main(String[] args) { System.out.println("What is your age?"); Scanner sc = new Scanner(System.in); int b = sc.nextInt(); if (b<12){ System.out.println("You get a 20% Discount."); } else { System.out.println("You are not eligible for a discount"); } } }
0
0
Intro to Java 6/20 Homework
In Java Question Bank
jonathan.cheng.2004
Jun 21, 2020
class Main { public static void main(String[] args) { double h = 3.5; double r = 4.0; double s = 2 * r * r * Math.PI + 2 * Math.PI * r * h; System.out.println(s); } }
0
0
Intro to Java 6/13 HW
In Java Question Bank
jonathan.cheng.2004
Jun 14, 2020
class Main { public static void main(String[] args) { System.out.println(" +"); System.out.println(" + +"); System.out.println(" + +"); System.out.println("+-----+"); System.out.println("| .-. |"); System.out.println("| | | |"); System.out.println("+-+-+-+"); } }
0
0
j
jonathan.cheng.2004
0
Followers
0
Following
Follow
Following icon
More actions
Profile
Forum Comments
Forum Posts
More
Use tab to navigate through the menu items.