General discussion

Locked

Bubble-up sorting program, Part 2

By riffael ·
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 conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Bubble-up sorting program, Part 2

by sriram_som In reply to Bubble-up sorting program ...

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.

Collapse -

Bubble-up sorting program, Part 2

by riffael In reply to Bubble-up sorting program ...

The question was auto-closed by TechRepublic

Collapse -

Bubble-up sorting program, Part 2

by Cedric King In reply to Bubble-up sorting program ...

Think it's best if you close this 2 uncomplete question and repost.

Collapse -

Bubble-up sorting program, Part 2

by riffael In reply to Bubble-up sorting program ...

The question was auto-closed by TechRepublic

Collapse -

Bubble-up sorting program, Part 2

by riffael In reply to Bubble-up sorting program ...

This question was auto closed due to inactivity

Back to Web Development Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums