Can someone please review my .c file and answer my question on line 24, 25.
Thank you in advance and have a nice day!!!
Here's a copy of my file in case it wasn't attached:
Code:
//This is just a rough draft of a project I am working on, so I apologize for the sloppy work..
#include <stdio.h>
#include <stdlib.h>
int main (){
float a,b,c,d,e,y,w;
float f=3.79;
b=100;
e=64;
d= f/e;
while (a<10){
printf("Enter your number: \n");
scanf("%f",&c);
w=.059219*c;
y=d+=w;
if(y>10){
printf("You did it!!!!\n");
y=y-10;//Why is the value of "y" not being subtracted from this statement?
//When I run it, the value keeps adding from "d+=w" past the if statement.
}
}
return 0;
}