Question: Can anyone help to make look my code better? #include using namespace std; int main() { const int N = 5; Il collect N data

Can anyone help to make look my code better? #include using namespaceCan anyone help to make look my code better?

#include using namespace std; int main() { const int N = 5; Il collect N data points int x[N], y[N]; for (int i = 0; i ", i); cin >> x[i] >> y[]; } for (int i = 0; i > pointA >> pointB; int dx = x[pointA] - x[pointB]; int dy = y[pointA] - y[pointB]; double answer = hypot(dx, dy); // MAKE THE OUTPUT LOOK GOOD. l/printf("%d,%d) and (%d, %d) are %f",); return 0; }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!