Hi, I am very new to programming and have written a very simple program to convert inches to mm and spit out the results. This program compiles just fine (running OpenSUSE through Oracle VirtualBox) but when I run it, nothing ever happens and it never finishes (ie it seems to have frozen). Again, I am extremely new to this, so forgive me for any mistakes, but here is the program:
Code:
#include <stdio.h>
#define MAX 100
#define STEP 10
#define CONVERSION 25.4
main()
{
float inch, mm;
inch=0;
while (inch<=MAX);
{
mm=inch*CONVERSION;
printf ("%f\t %f\n", inch, mm);
inch=inch+STEP;
}
return 0;
}