1: ? 1 5
:
? 1 5 for
? :
-
;for -
{ } -
i <= 5i < 5
?:
for(int i = 1 i <= 5; i++)
System.out.println(i);
: ; 1
2:
:
?
? :
- (
int) -
"+""+"
?:
int a = 5;
int b = 3;
System.out.println(": " + a + b);
: 53 8
(a + b)
3: if
:
? 10 “”
? :
-
=== -
{ }
?:
int x = 15;
if(x = 10){
System.out.println("");
}
: == =
4:
:
? :
- import
Scanner - object
?:
Scanner sc;
int x = sc.nextInt();
: new Scanner(System.in)
5: while
:
1 3 while
? :
-
i++loop
?:
int i = 1;
while(i <= 3){
System.out.println(i);
}
: i
? ? :
-
; -
=== -
{ } - loops increment

Leave a Reply
You must be logged in to post a comment.