scanf("%c", &ch ) do not read the character from console while scanf("  %c", &ch ) does, the snipet from code is given under
printf("If the value of speed of sound is known enter Y else enter N");
scanf(" %c", &ch );
scanf("%c", &ch ) do not read the character from console while scanf("  %c", &ch ) does, the snipet from code is given under
printf("If the value of speed of sound is known enter Y else enter N");
scanf(" %c", &ch );
 
    
    