-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathHelloWorld.java
More file actions
34 lines (30 loc) · 867 Bytes
/
Copy pathHelloWorld.java
File metadata and controls
34 lines (30 loc) · 867 Bytes
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
class HelloWorld
{
public static void main(String [] args)
{
/*System.out.print("Hello World");
System.out.println("The State University of Zanzibar");
System.out.println("SUZA");*/
int x;
x=2;
System.out.println("The value of "+x);
//float, double
float y = 0.5f;
double p = 0.5;
System.out.println(y+""+p);
y=2323.08f;
int a=2,b=4;
System.out.println(a+b);
System.out.println(a-b);
System.out.println(a*b);
System.out.println(a/b);
System.out.println(b%a);
System.out.println(a>b);
System.out.println(a<b);
System.out.println(a>=b);
System.out.println(a<=b);
System.out.println(a==b);
System.out.println(a!=b);
System.out.println((a>b)&& (a<b));
}
}