/*
* calcute area of a rectangle.
*/
#include <stdio.h> /* printf, scanf definitions */
#include <math.h>
int
main (void)
{
double width, /* input - width of rectangle. */
double length, /* input - length of rectangle. */
Area; /* output - area of rectangle */
/* get the width of rectangle. */
printf("Enter width> ");
scanf("%lf", &width);
/* get the length of rectangle. */
printf("Enter length> ");
scanf("%lf", &length);
/*convert to Area or rectangle. */
Area = width * length;
/* display Area of rectangle. */
printf( "The Area is %f . \n", Area);
return (0);
C:\Users\student\Documents\area.c(10): error #2092: Missing identifier.
C:\Users\student\Documents\area.c(10): error #2001: Syntax error; found 'double' expecting ';'.
*** Error code: 1 ***