Pelles C forum

C language => Beginner questions => Topic started by: zaeka on August 18, 2009, 10:26:10 PM

Title: error #2088: Lvalue required.
Post by: zaeka 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????????
Title: Re: error #2088: Lvalue required.
Post by: JohnF 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