without changing the main function i need to write the program as described above in subject line. the algoritham to be follwed is also given at...
Separate names with a comma.