Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main() {
- int inputType;
- cin >> inputType;
- if (inputType == 0) {
- float items[2];
- cin >> items[0] >> items[1];
- cout << mySolution(items) << endl;
- } else if (inputType == 1) {
- double items[2];
- cin >> items[0] >> items[1];
- cout << mySolution(items) << endl;
- } else if (inputType == 2) {
- vector<float> items(2);
- cin >> items[0] >> items[1];
- cout << mySolution(items) << endl;
- } else if (inputType == 3) {
- vector<double> items(2);
- cin >> items[0] >> items[1];
- cout << mySolution(items) << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement