/* * Write program that takes three ints and outputs the smallest * so if input is 7 15 3 * then answer is 3 */ #include using namespace std; int main() { /* Type your code here. */ int num1, num2, num3; int smallest; cin >> num1; cin >> num2; cin >> num3; if (num1 < num2){ smallest = num1; } else{ smallest = num2; } if (num3 < smallest){ smallest = num3; } cout << smallest << endl; return 0; }