I have Linux running on a 32MB computer.
I have Win200 on a256MB computer.
The Win2000 computer has the Miracle C compiler.
The Linux computer has a compiler-but I do not know which one(i do not know how to find out).
The following program,runs ok with Miracle C but does not run on the Linux Computer.Kindly advise.
Program#1
-----------------------------
/* Averages five float values entered by the user. */
#include <stdio.h>
float v, w, x, y, z, answer;
float average(float a, float b, float c, float d, float e);
main()
{
puts("Enter five numbers:");
scanf("%f%f%f%f%f", &v, &w, &x, &y, &z);
answer = average(v, w, x, y, z);
printf("The average is %f.\n", answer);
return 0;
}
float average( float a, float b, float c, float d, float e)
{
return ((a+b+c+d+e)/5);
}
-----------------------------------
Many Thanks
csick