Here is my code it executes fine it just won't redo the loop when I press "y"
Code:
#include <stdio.h>
int main()
{
int c; /* c is get char */
char d;
float t; /* t is how far away the lighting is */
printf ("Enter the amount of seconds between the flash and the sounds.\n");
do {
scanf ("%d.00",&c); /* is the amount of time between the flash and the sounds */
t= c*.2; /* multiply the time it takes for sounds to travel by the differance of the time of flash and sounds */
printf ("The lighting is %f mile(s) away\n",t); /* diplay how far away the lighting is */
printf ("Would you like to continue (Y/N)\n");
scanf ("%c",&d);
}
while (d =='y',d=='Y');
return 0;
}