Skip to content
Snippets Groups Projects
Commit 1c42614b authored by s-jdoyle4's avatar s-jdoyle4
Browse files

Answer to 8c

parent 5a9f78e1
No related branches found
No related tags found
No related merge requests found
HW8c.cpp 0 → 100644
#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;
}
HW8c.out 0 → 100755
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment