{ char str[8]; printf("Dose ...\n"); fgets(str,sizeof(str),stdin); int y; float x; x = str[0]; y = x - '0'; printf("%f", y); }