Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
programming sem 2 year 1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
daniel.tang
programming sem 2 year 1
Commits
0f6c5c28
Commit
0f6c5c28
authored
Jan 27, 2020
by
daniel.tang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
1c6af3bc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
circleOfLife.java
Week 1/Circle of Life/circleOfLife.java
+25
-0
No files found.
Week 1/Circle of Life/circleOfLife.java
0 → 100644
View file @
0f6c5c28
package
programmingP2week1
;
public
class
circleOfLife
{
public
static
void
main
(
String
[]
args
)
{
// TODO Auto-generated method stub
circleOfLife1
areaC
=
new
circleOfLife1
();
areaC
.
radiusA
=
10
;
areaC
.
pis
=
3.14
;
areaC
.
c
=
Math
.
pow
(
areaC
.
radiusA
,
2
)
*
areaC
.
pis
;
areaC
.
diams
=
areaC
.
radiusA
*
2
;
System
.
out
.
println
(
"Area of 10 is "
+
areaC
.
c
);
circleOfLife1
circuC
=
new
circleOfLife1
();
areaC
.
radiusA
=
10
;
areaC
.
pis
=
3.14
;
areaC
.
diams
=
areaC
.
radiusA
*
2
;
areaC
.
c
=
areaC
.
radiusA
*
areaC
.
pis
;
System
.
out
.
println
(
"Circumference of 10 is "
+
areaC
.
c
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment