
Student: RussellLowke
    T.F: Francis Crick
Unit Two, pencil-and-paper - question 2 [worth 1pt],  7/1/2002

Carefully correct the syntax errors in this horrible little program.
What values would be output by the corrected verson.

/* PROBLEM [2]
#include "iostream.h"
MAIN() { constant FLOAT X = 2.5;
  integer z, y; y = 5; z = y + 3.5 * X;
cout >> x; y; z;}



_____



// PROBLEM [2]
void main()
{
    const float FLOATX = 2.5;
    int   y = 5,
          z = y + 3.5 * FLOATX;
    cout << FLOATX << y << z << endl;
}



_____ 

output values would be:

FLOATX = 2.5
y = 5
z = 13