MCPcopy Create free account
hub / github.com/Rustam-Z/cpp-programming / DistanceSecond

Function DistanceSecond

Lab_14/Source.cpp:89–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87 }
88};
89void DistanceSecond()
90{
91 Distance d1, d2;
92 float k1, m1, k2, m2;
93 cout << "First distance: \n";
94 cout << "Kilometers: ";
95 cin >> k1;
96 cout << "Meters: ";
97 cin >> m1;
98 if (m1 > 1000)
99 {
100 k1 = m1 / 1000;
101 }
102 cout << endl
103 << endl;
104
105 cout << "Second distance: \n";
106 cout << "Kilometers: ";
107 cin >> k2;
108 cout << "Meters: ";
109 cin >> m2;
110 if (m2 > 1000)
111 {
112 k2 = m2 / 1000;
113 }
114 d1 == d2;
115}
116int main()
117{
118 int choice;

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected