Discussion Locked

Bubble-up sorting program, Part 2

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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.

5 replies

by sriram_som

What is the question?? I can only see the program and could able to see part 2 and part 3 of 3 only. Is there any part 1? write the question clearly then will try to answer.

This discussion is closed to new replies.