test
This commit is contained in:
1 parent
88624bc20a
commit
81d46a7d32
24 files changed
+1335
No files matched your search
Executable
+27
@@ -0,0 +1,27 @@
|
||||
#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;
|
||||
}
|
||||
Reference in new issue
Block a user