FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
java_sneha/loops.java at main · Snehatiwari2425/java_sneha · GitHub
Snehatiwari2425
/
java_sneha
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
java_sneha
/
loops.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
38 lines (27 loc) · 617 Bytes
Breadcrumbs
java_sneha
/
loops.java
Copy path
File metadata and controls
38 lines (27 loc) · 617 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
package
Day1Task
;
public
class
loops
{
public
static
void
main
(
String
[]
args
) {
// TODO Auto-generated method stub
int
i
=
1
;
System
.
out
.
println
(
"while loop"
);
while
(
i
<
10
)
//while loop
{
System
.
out
.
println
(
i
);
if
(
i
==
5
)
break
;
i
++;
}
System
.
out
.
println
(
"do while loop"
);
int
p
=
1
;
// TODO Auto-generated method stub
do
{
System
.
out
.
println
(
p
);
//do while loop
p
++;
}
while
(
p
<
10
);
System
.
out
.
println
(
"foor loop"
);
for
(
int
a
=
0
;
a
<
10
;
a
++)
//for loop
{
System
.
out
.
println
(
a
);
}
}
}
Back
|
FazBrowse Home
|
New Git URL