MIPI_BaseC_WebinarFRTK/25_Seminar12/07_varg_p18.c
2024-11-13 09:22:28 +03:00

17 lines
292 B
C

#include <stdio.h>
#include <math.h>
#define PR(X, ...) printf("Message " #X ": " __VA_ARGS__)
int main(void)
{
double x = 48;
double y;
y = sqrt(x);
PR(1, "x = %g\n", x);
PR(2, "x = %.2f, y = %.4f\n", x, y);
PR(test, "x = %.2f, y = %.4f\n", x, y);
return 0;
}