I am a student taking an Intro C programming course and I need help! My assignment is below. I have written the code to best of my ability and it even seems to compile fine, but when I enter numbers into the calculator the whole thing crashes. I have no idea why or even how to go about figuring it out. My "crash" error is at the bottom of the page... Please help me!
// Homework 4.cpp : Defines the entry point for the console application.
int main (void)
float accumulator, value;
printf ("Enter number.\n");
scanf_s ("%f %c", &value, &op);
accumulator = value; break;
accumulator = accumulator + value; break;
accumulator = accumulator - value; break;
accumulator = accumulator * value; break;
if ( value == 0 )
printf ("Divison by zero does not compute.\n");
accumulator = accumulator / value; break;
} while (op != 'e' );