fix
This commit is contained in:
@@ -52,7 +52,6 @@ double do_while_fn(Context* ctx)
|
|||||||
void lab_3()
|
void lab_3()
|
||||||
{
|
{
|
||||||
Context ctx = { .i = 1, .x = 0 };
|
Context ctx = { .i = 1, .x = 0 };
|
||||||
uint32_t n = 0;
|
|
||||||
|
|
||||||
printf("Enter [x]: ");
|
printf("Enter [x]: ");
|
||||||
READ_EXACT("%lf", ctx.x);
|
READ_EXACT("%lf", ctx.x);
|
||||||
@@ -106,6 +105,6 @@ void lab_3()
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("y(x=%lf,N=%u) = %lf\n", ctx.x, n, tan(fabs(ctx.x)) * loop_fn(&ctx));
|
printf("y(x=%lf,N=%u) = %lf\n", ctx.x, ctx.n, tan(fabs(ctx.x)) * loop_fn(&ctx));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user