So i have been working on a program that will find the area of a shape and i have been getting multiple errors on my compiler saying that i am comparing a pointer and an integer, however i am not... at least i don't think that i am. The program runs, however when i input my string, it crashes
here is my code
#include <stdio.h>
#include <math.h>
int main(void){
char str_1;
printf("Hello! This program will find the area of selceted figrues!\n");
printf("What is your shape? The only shapes that work are Triangles,\
Rectangles, and Circles\n");
scanf("%c", str_1);
do {
printf("That is an invalid input the only shapes that work are Triangles, \
Rectangles, and Circles\n");
scanf("%c", str_1);
}
while(str_1 != "circle", "rectangle", "triangle");
if (str_1 == "circle") {
printf("What is the radius?\n");
scanf("%i");
}
}