Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
phys401
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
s-jdoyle4
phys401
Commits
1c42614b
Commit
1c42614b
authored
11 years ago
by
s-jdoyle4
Browse files
Options
Downloads
Patches
Plain Diff
Answer to 8c
parent
5a9f78e1
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
HW8c.cpp
+17
-0
17 additions, 0 deletions
HW8c.cpp
HW8c.out
+0
-0
0 additions, 0 deletions
HW8c.out
with
17 additions
and
0 deletions
HW8c.cpp
0 → 100644
+
17
−
0
View file @
1c42614b
#include
<iostream>
int
main
()
{
using
std
::
cin
;
using
std
::
cout
;
int
i
,
j
;
double
x
;
j
=
1
;
for
(
i
=
1
;
i
<=
10
;
i
++
)
if
(
i
>
5
)
x
-=
i
;
else
j
=
2
*
i
;
x
=
j
/
2
;
cout
<<
"x is"
<<
x
;
return
0
;
}
This diff is collapsed.
Click to expand it.
HW8c.out
0 → 100755
+
0
−
0
View file @
1c42614b
File added
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment