Files
LAB16/include/LAB3.h
2026-02-25 18:09:22 +03:00

25 lines
532 B
C

#ifndef LAB3_H
#define LAB3_H
#include <stdint.h>
#include "shared.h"
typedef struct
{
double x;
} Context;
typedef double (IterFn)(double, uint32_t);
typedef double (LoopFn)(Context* ctx, uint32_t, uint32_t max, IterFn* iter_fn);
double iter_fn(double x, uint32_t i);
double for_fn(Context* ctx, uint32_t min, uint32_t max, IterFn* iter_fn);
double while_fn(Context* ctx, uint32_t min, uint32_t max, IterFn* fiter_fn);
double do_while_fn(Context* ctx, uint32_t min, uint32_t max, IterFn* iter_fn);
void lab_3();
#endif