This commit is contained in:
2026-03-05 11:21:39 +03:00
parent d83a311237
commit 4ac2ede932

View File

@@ -52,7 +52,6 @@ double do_while_fn(Context* ctx)
void lab_3()
{
Context ctx = { .i = 1, .x = 0 };
uint32_t n = 0;
printf("Enter [x]: ");
READ_EXACT("%lf", ctx.x);
@@ -106,6 +105,6 @@ void lab_3()
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));
}
}