Identify the mistake? (C Program)

Identify the mistake? (C Program)
0

#1

#include <stdio.h>

int main()
{
int lengthOfRectangle, WidthOfRectangle, AreaOfRectangle;

 printf("Enter Length of Rectangle");
 scanf("%d",&lenghtOfRectangle);
 printf("Enter Width of Rectangle");
 scanf("%d",&WidthOfRectangle);

 AreaOfRectangle=lengthOfRectangle*WidthOfRectangle;

 printf("Area Of Rectangle is:", AreaOfRectangle);
    return 0;

}


#2

On line 8, “length” is mispelled. (I don’t know how many times I’ve mistyped that.)

Also, your printf is imporperly formed. Try:

printf("Area Of Rectangle is: %d", AreaOfRectangle);