case add_distance( )printf("\ the sum of two distances is % kms % meters" kmsd meters)breakcase subtract_distance( )printf("\ the difference between two distances is % kms % meters" kmsd meters)break}while(option ! )getch()return distance add_distance(distance distance distance sumsum meters meters meterssum kms kms kmswhile (sum meters > sum meters sum meters sum kms + return sumdistance subtract_distance(distance distance distance subif( kms kmssub meters meters meterssub kms kms kmselse sub meters meters meterssub kms kms kmsif(sub meters sub kms sum kms sub meters sum meters return suboutput *******main menu ******** read the distances display the distances add the distances subtract the distances exit