Bubble-up sorting program, Part 2 - TechRepublic
General discussion
October 2, 2000 at 01:46 AM
riffael

Bubble-up sorting program, Part 2

by riffael . Updated 24 years, 8 months ago

printf(“\n\nWhich currency are you converting from: “);
sr = get_menu_input(counter);

printf(“\n\nWhich currency are you converting to: “);
ds = get_menu_input(counter);

printf(“\n\nHow much do you have to convert: “);
amount = get_amount();

result = amount * atof(data[ds][1]) / atof(data[sr][1]);

printf(“\n\n___________________________________________\n\n”);
printf(“%lf %s are equal to %lf %s”,amount,data[sr][2],result,data[ds][2]);

printf(“\n\nWould you like to make another conversion(Y/N)?\n Pressing ‘N’ will terminate this program. “);

}
while (getch() ==’y’);

return 0;
}
PLEASE SEE (FINAL) PART 3 OF QUESTION.

This discussion is locked

All Comments