Commit cf329a99 by emonyi

Update Homework1Ccode.c

parent 6e82c5c1
Showing with 2 additions and 3 deletions
......@@ -16,7 +16,6 @@
int main(void)
{
//intialization of variables
double t;
float A=0;
int i=0;
int N=0;
......@@ -54,10 +53,10 @@ int main(void)
{
//mathematical equation
x += i*(H);
y =(pow(sin(t+5), 2)+ cos(t))/(x + exp(t+3));
y =(pow(sin(x+5), 2)+ cos(x))/(x + exp(x+3));
//output print statement
printf(" %d\t %0.2f\t\t %0.4f\n",N+1,x,y);
printf(" %d\t %0.2f\t\t %0.25f\n",N+1,x,y);
i++;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment