Question: this is for c++ language @file p2.cpp CS 150 PEO2: INTERMEDIATE SELECTION/ LOGIC You have been dealt two cards, a and b. Each card has
@file p2.cpp CS 150 PEO2: INTERMEDIATE SELECTION/ LOGIC You have been dealt two cards, a and b. Each card has a value 0-100. Set the variable nearest to whichever value is nearest to 21 without going over. Do not use any library functions. pint nearest(int a, int b) int result; // Your code goes here UNCANNESBBW00w return result; I IIIIIIIIIIT STUDENT TESTS /// #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
