I made a simple C programming calculator project including areas and volumes, but there are errors.
I have attatched my code and the instructions I had.
#include <stdio.h>
int main() {
char name[100];
printf("Hello! I am a computer, haha\n\n");
printf("Enter your name:\n");
scanf("%s", name);
//Calculate geometric formulas for using user Input
const float PI = 3.14159265;
float Area;
float Volume;
int Radius;
int Height;
printf("\n Hello Aaron! We will calculate some geometric formulas!\n");
//Area and volume of a sphere
printf("\n Sphere: \n\n");
printf("Enter the radius of the sphere: \n");
scanf("%d", Radius);
Area = Radius * Radius * PI
Volume = 4*PI*Radius*Radius/3
printf("/nArea is ==> {Area}");
printf("/nVolume is ==> {Volume}");
}
