Changes to file structure for VSCode and bug fixes

This commit is contained in:
Louise Brown
2022-11-14 13:51:40 +00:00
parent 7fd908108a
commit caee190d05
41 changed files with 346 additions and 124 deletions

17
LC20/AreaFunc.c Normal file
View File

@@ -0,0 +1,17 @@
#include <stdio.h>
#include <math.h>
float CalculateAreaOfCircle ( float radius )
{
float area;
area = M_PI * radius * radius ;
return (area) ;
}
float CalculateSurfaceAreaOfCylinder ( float radius, float length )
{
float area;
area = 2.0 * ( M_PI * radius * radius ) + ( M_PI * 2.0 * radius * length ); // two ends + side
return (area) ;
}