value not match sum time

float a;
float b = 6.35;

float d ;
float c;
float dd = 20;
float ds = 127;
void q();
void setup() {
Serial.begin (250000);

}

void loop() {

Serial.println("enter number. "); /*1 to 6 any float number enter */
while (Serial.available ()==0 ){}
a = Serial.parseFloat();
q();
}
void q (){
dd = 20;

while (dd<=127){
c = b/a;
Serial.print ("thr value ");
Serial.println( c );

Serial.print(“fast gear “);
Serial.print(dd);
d = ds/ dd;
Serial.print(” gear value”);
Serial.println(d);

if (c==d){

Serial. println(“fast gear”);
Serial.println (dd);

Serial. println(“second gear”);
Serial.println (ds);

break;
}

dd++;
}
Serial.println(“not ok”);

}

Do you have a question?

Can we expect code tags anytime soon?

q();

What a great name for a function. It is perfectly obvious what the function does. NOT!

Do you have a question?

Answer in code tags:

void q (){