Partially changed file structure to suit VSCode

This commit is contained in:
Louise Brown
2022-10-24 14:01:59 +01:00
parent 1c0a9e7b6a
commit a2c8695634
29 changed files with 30 additions and 21 deletions

View File

@@ -13,12 +13,7 @@
*/
float CalculateAreaOfCircle ( float radius )
{
float area;
area = M_PI * radius * radius ;
return (area) ;
}
float CalculateAreaOfCircle ( float radius );
/* Show use of function */
@@ -45,3 +40,10 @@ int main (void)
// All done
return 0;
}
float CalculateAreaOfCircle ( float radius )
{
float area;
area = M_PI * radius * radius ;
return (area) ;
}

View File

@@ -32,8 +32,8 @@ int main (void)
// Prompt for and obtain values
printf ("Please enter the radius of the cylinder: ");
scanf ("%f", &rad);
ad
printf ("Please enter the length of the cylinder: ");
printf ("Please enter the length of the cylinder: ");
scanf ("%f", &len);
// Use our function to calculate the area