-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlearn1.java
More file actions
29 lines (22 loc) · 810 Bytes
/
learn1.java
File metadata and controls
29 lines (22 loc) · 810 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
// importante tong nasa baba nato.
import java.util.*;
/*
* itoy comment na ito ay pampaganda lamang sa code
* @author Lento_Kun
*/
// itong filename ay pwede ibahin for example "lento.java".
class learn1{
// wag kakalimutan tong mga to
public static void main(String[] args){
// kaya may scanner dahil mag iinput ka
Scanner test = new Scanner(System.in);
// variables ng java.
String text = "Welcome to Mobile Legends"; // String for text.
int num = 35; // int for whole number.
float flow = 7.0f; // di ko pa sya nagagamit pero parang ganyan siguro ang float.
double doble = 1.2; // double with float
// for outputs
System.out.print(text + num + flow + doble);
// output is "Welcome to Mobile Legends 35 7.0f 1.2".
}
}