NO

Author Topic: error #2088: Lvalue required.  (Read 5864 times)

zaeka

  • Guest
error #2088: Lvalue required.
« on: August 18, 2009, 10:26:10 PM »
this is my program

#include<stdio.h>
int main()
{
   float farenheit,celcius;
   printf("\nProgram to convert the celcius value to farenheit value\n");
   printf("\nPlease enter the value in celcius:");
   scanf("%f",&celcius);
   (9.0/5.0) *celcius + 32= farenheit;
   
   
return 0;
}
then when compile it write Lvalue required...why????????

JohnF

  • Guest
Re: error #2088: Lvalue required.
« Reply #1 on: August 19, 2009, 08:59:42 AM »
Here's a question - which of these two lines is wrong.

1)   45 = x;

2)   x = 45;

John