Question: If the input is negative, make numltemsPointer be null. Otherwise, make numltemsPointer point to numltems and multiply the value to which numltemsPointer points by 1

If the input is negative, make numltemsPointer be null. Otherwise, make numltemsPointer point to numltems and multiply the value to which numltemsPointer points by 10. Ex: If the user enters 99, the output should be:
Items : 990
earn how our autograder works
37622.1784832 qxiszqy
2 using namespace std;
int
int* numItemsPointer;
int numItems;
cin numItems;
I.
V* Your solution goes here */
if (numItemsPointer == nullptr){
cout "Items is negative" endl;
}
else {
cout "Items: "*numItemsPointer endl;
}.
return A :
 If the input is negative, make numltemsPointer be null. Otherwise, make

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!