Toggle navigation
Toggle navigation
This project
Loading...
Sign in
신은섭(Shin Eun Seop)
/
2018-1-d.cloud
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
10
Merge Requests
0
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
신은섭(Shin Eun Seop)
2018-06-07 13:42:18 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
deed915ce6bc2aa1a6c88fb065cbcd68660a1e94
deed915c
1 parent
488713ab
delete temp media file
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
90 deletions
.gitignore
dcloud/calculator.java
dcloud/media/calculator.java
.gitignore
View file @
deed915
...
...
@@ -108,3 +108,6 @@ ENV/
# aws configutation file
aws_conf.py
# media file
**/media/*
\ No newline at end of file
...
...
dcloud/calculator.java
deleted
100644 → 0
View file @
488713a
import
java.util.Scanner
;
class
calculator
{
public
static
void
main
(
String
[]
args
)
{
Scanner
scn
=
new
Scanner
(
System
.
in
);
System
.
out
.
print
(
"Input first args: "
);
float
num1
=
scn
.
nextFloat
();
System
.
out
.
print
(
"Input second args: "
);
float
num2
=
scn
.
nextFloat
();
System
.
out
.
print
(
"Input Operator(+,-,/,*): "
);
String
oper
=
scn
.
next
();
float
result
=
0.0f
;
switch
(
oper
)
{
case
"+"
:
result
=
num1
+
num2
;
break
;
case
"-"
:
result
=
num1
-
num2
;
break
;
case
"/"
:
result
=
num1
/
num2
;
break
;
case
"*"
:
result
=
num1
*
num2
;
break
;
default
:
break
;
}
System
.
out
.
println
(
"Result is "
+
result
);
scn
.
close
();
}
}
\ No newline at end of file
dcloud/media/calculator.java
deleted
100644 → 0
View file @
488713a
import
java.util.Scanner
;
class
calculator
{
public
static
void
main
(
String
[]
args
)
{
Scanner
scn
=
new
Scanner
(
System
.
in
);
System
.
out
.
print
(
"Input first args: "
);
float
num1
=
scn
.
nextFloat
();
System
.
out
.
print
(
"Input second args: "
);
float
num2
=
scn
.
nextFloat
();
System
.
out
.
print
(
"Input Operator(+,-,/,*): "
);
String
oper
=
scn
.
next
();
float
result
=
0.0f
;
switch
(
oper
)
{
case
"+"
:
result
=
num1
+
num2
;
break
;
case
"-"
:
result
=
num1
-
num2
;
break
;
case
"/"
:
result
=
num1
/
num2
;
break
;
case
"*"
:
result
=
num1
*
num2
;
break
;
default
:
break
;
}
System
.
out
.
println
(
"Result is "
+
result
);
scn
.
close
();
}
}
\ No newline at end of file
Please
register
or
login
to post a comment