# Homework Math

Jul 12th, 2016
Studypool Tutor
Price: \$5 USD

Tutor description

Homework Math

Word Count: 628
Showing Page: 1/5
Program 1:Code:import java.util.Scanner;public class Problem1 {public static void main(String[] args) {Scanner sc=new Scanner(System.in);System.out.println("Enter Number 1:");int a=sc.nextInt();System.out.println("Enter Number 2:");int b=sc.nextInt();System.out.println("The maximum number is "+max(a,b));}public static int max(int a,int b){return a>b?a:b;}}Output:Enter Number 1:5Enter Number 2:10The maximum number is 10Program 2:Code:import java.util.Scanner;public class Problem2 {public static void main(String[] args) {Scanner sc=new Scanner(System.in);System.out.println("How many time do you want to run theprogram?");int it=sc.nextInt();for(int i=0;i

## Review from student

Studypool Student
" Only issue was the guy's response time which was a bit long, which made me a bit anxious. Reached out to the help desk and they helped me out, turns out the tutors aren't all from US which meant there was a time difference. No issues on the quality. "

1829 tutors are online

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors