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 11/7 Homework
In Java Question Bank
tliu3157
Nov 08, 2020
Hy
0
0
Intro to Java 10/31/20 Homework
In Java Question Bank
tliu3157
Nov 01, 2020
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner x = new Scanner(System.in); int y = x.nextInt(); int a = y%19; int b = y/100; int c = y%100; int d = b/4; int e = b%4; int g = (8*b+13)/25; int h = (19*a+b-d-g+15)%30; int j = c/4; int k = c%4; int m = (a+11*h)/319; int r = (2*e+2*j-k-h-m+32)%7; int n = (h-m+r+90)/25; int p = (h-m+r+n+19)%32; System.out.println(a); System.out.println(b); System.out.println(c); System.out.println(d); System.out.println(e); System.out.println(g); System.out.println(h); System.out.println(j); System.out.println(k); System.out.println(m); System.out.println(r); System.out.println(n); System.out.println(p); } }
0
0
t
tliu3157
0
Followers
0
Following
Follow
Following icon
More actions
Profile
Forum Comments
Forum Posts
More
Use tab to navigate through the menu items.