-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMain.java
52 lines (42 loc) · 1.42 KB
/
Main.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// Scanner scanner = new Scanner(System.in);
// String hello = "Hello World";
// int a = 3;
// boolean b = true;
/* Make a double variable named 'd' with the value 6.28 */
System.out.println("Hello TechHOUNDS");
// if (a == 3) {
// System.out.println("a is 3! :D");
// } else if (a == 4) {
// System.out.println("a is 4! :>");
// } else {
// System.out.println("a is not 3 or 4! >:c");
// }
/* Counts up from 0 to 5 */
// int i = 0;
// while (i < 5) {
// System.out.println(i);
// i++;
// }
/* Same thing as the while loop above, expressed as a for loop */
// for (int j = 0; j < 5; j++) {
// System.out.println(j);
// }
/* Write while and for loops to count down from 5 to 0 here */
}
// This is a void method because it doesn't return anything
// static void sayHi() {
// System.out.println("Hi! :3");
// }
// This method returns a value, it has a return type instead of 'void'
// static double add(double x, double y) {
// return x + y;
// }
/*
* Write a method that takes in two ints and prints out
* "Subtracting <second int> from <first int>", then returns the result of the
* subtraction
*/
}