III, programming (30') 1. Fill in the blanks to finish the program, according to the annotation. (10') #include
Posted: Thu May 26, 2022 9:23 am
III, programming (30') 1. Fill in the blanks to finish the program, according to the annotation. (10') #include <iostream> using namespace std; // Prototype void main() { double a, b, c, ml, m2; cout << "input a, b, c:\n"; cin >> a >> b >> c; ml = max(a, b); m2 = max( ml, c); cout << "Maximum = } { if (x>y) return x; else return y; } // function call << m2 << endl; // definition
Posted: Thu May 26, 2022 9:23 am
III, programming (30') 1. Fill in the blanks to finish the program, according to the annotation. (10') #include <iostream> using namespace std; // Prototype void main() { double a, b, c, ml, m2; cout << "input a, b, c:\n"; cin >> a >> b >> c; ml = max(a, b); m2 = max( ml, c); cout << "Maximum = } { if (x>y) return x; else return y; } // function call << m2 << endl; // definition