package homework;

import java.util.Scanner;

public class StartHomework {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		
		System.out.println("Calculating rectangle area. Please input 2 numbers:");
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		
		long area = RectangleArea.rectangleArea(a, b);
		System.out.println(area);
		
		System.out.println("Calculating triangle area. Please input 6 numbers:");
		int aA1 = scanner.nextInt();
		int aA2 = scanner.nextInt();
		int bB1 = scanner.nextInt();
		int bB2 = scanner.nextInt();
		int cC1 = scanner.nextInt();
		int cC2 = scanner.nextInt();
		
		area = TriangleArea.triangleArea(aA1, aA2, bB1, bB2, cC1, cC2);
		System.out.println(area);
		
		System.out.println("Calculating Smalest of 3 numbers. Please input 3 numbers:");
		double first = scanner.nextDouble();
		double second = scanner.nextDouble();
		double third = scanner.nextDouble();
		double smallest = SmallestOfThreeNumbers.smallestOfThreeNumbers(first, second, third);
		
		System.out.println(smallest);
		
		scanner.close();
	}
}

























@@ -39,16 +39,73 @@
 anner;%0A%0A
+import com.sun.javafx.fxml.expression.BinaryExpression;%0A%0A
 public c
@@ -212,18 +212,18 @@
 em.in);%0A
-%09%09
+/*
 %0A%09%09Syste
@@ -1123,16 +1123,741 @@
 st);%0A%09%09%0A
+%09%09System.out.println(%22Convert decimal to hexadecimal number. Input decimal number:%22);%0A%09%09int decimal = scanner.nextInt();%0A%09%09String hex = DecimalToHexadecimal.decimalToHexadecimal(decimal);%0A%09%09System.out.println(hex);%0A%09%09%0A%09%09int numberA = scanner.nextInt();%0A%09%09while (numberA %3C 0 %7C%7C numberA %3E 500) %7B%0A%09%09%09numberA = scanner.nextInt();%0A%09%09%7D%0A%09%09%0A%09%09float numberB = scanner.nextFloat();%0A%09%09float numberC = scanner.nextFloat();%0A%09%09int bits = Float.floatToIntBits(numberB);%0A%09%09%09%09%0A%09%09System.out.printf(%22%7C%25s%7C%25s%7C%25.2f%7C%25.3f%7C%22, Integer.toHexString(numberA), Integer.toBinaryString(bits), numberB, numberC);%0A%09%09%0A%09%09%0A%09%09int numberForCountBits = scanner.nextInt();%0A%09%09int count = CountOfBitsOne.Count(numberForCountBits);%0A%09%09System.out.println(count);%0A%09%09*/%0A%09%09%0A
 %09%09scanne

update StartHomework