Files
2026-11-07 20:19:25 -05:00

27 lines
348 B
C
Executable File

#include <stdio.h>
#include <stdlib.h>
float foo(float a, float b)
{
int I;
float c;
c = 0;
for(I=0;I<5;I++)
{
printf("I=%d, c=%1.3f\n",I,c);
c = c + a - b;
}
return c;
}
void main()
{
float ret;
ret = foo(4.0,5.0);
printf("ret=%1.3f\n",ret);
return;
}