If the following C++ program is run and the following data isinput, what would i
ID: 3614361 • Letter: I
Question
If the following C++ program is run and the following data isinput, what would it output? Please write everything displayed bythe cout lines.2 4 4 8 4 1 1 2 1 3 3 9 10 -22 2 8 3 3 5 4
#include < iostream >using namespace std;int main(){const int SENTINEL = 0;int c;float n, d, s;float y1, y2, x1, x2;cout << "Enter four numbers (the program terminates when first two are equal): " << endl;cin >> x1 >> x2 >> y1 >> y2;d = static_cast<float>(x2 - x1);n = static_cast<float>(y2 - y1);c = 1;while ( (x2 - x1) != SENTINEL){s = n/d;cout << "Result#" << c << " is " << s << endl;cout << "Enter four numbers (the program terminates when first two are equal): " << endl;cin >> x1 >> x2 >> y1 >> y2;d = static_cast<float>(x2 - x1);n = static_cast<float>(y2 - y1);c = c + 1;}return 0;}