mystery.cpp - return'w else return'H int sum_of_three(int...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include <iostream> using namespace std; char mystery(int first_par, int second_par); int sum_of_three(int num1, int num2, int num3); double avg_of_two(int arg1, double arg2); char charge(double input); int main() { cout << mystery(10,9) << "ow\n"; return 0; } char mystery(int first_par, int second_par) { if(first_par >= second_par)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: return 'w'; else return 'H'; } int sum_of_three(int num1, int num2, int num3) { return (sum_of_three == num1+num2+num3); } double avg_of_two(int arg1, double arg2) { return(avg_of_two== (arg1+arg2)/2); } char charge(double input) { if input <=0 return (charge == 'N') else return (charge=='P') }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online