Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
s-jdoyle4
phys401
Commits
e255d6ec
Commit
e255d6ec
authored
Jan 27, 2014
by
s-jdoyle4
Browse files
answer to 7c
parent
80f67324
Changes
2
Hide whitespace changes
Inline
Side-by-side
HW7c.cpp
0 → 100644
View file @
e255d6ec
#include
<iostream>
int
main
()
{
using
std
::
cin
;
using
std
::
cout
;
int
i
;
double
x
;
x
=
1
;
for
(
i
=
1
;
i
<=
10
;
i
++
)
if
(
i
>
6
)
x
-=
i
;
else
if
(
i
>
3
)
x
=
2
*
i
;
else
x
--
;
cout
<<
"x is"
<<
x
;
return
0
;
}
HW7c.out
0 → 100755
View file @
e255d6ec
File added
Write
Preview
Supports
Markdown
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