Question: Write to program to input a value. Assign a pointer to point to the value. If the input is not positive, make the Pointer point

 Write to program to input a value. Assign a pointer to

Write to program to input a value. Assign a pointer to point to the value. If the input is not positive, make the Pointer point to a null value. If not muitiply the value to which the Pointer points to by 100 Ex: If the uger enterg 9 , the output should be: Values: 900 If the user entera 9, the output should be: -9 13 not a pogative number main.cpp Load default template. 1y 2 write to prograe to ingut a value. Assign a pointer to point to the value. If the ingut is not positive. 3 make the Potnter point to a null vatue. If not multiply the value to ahich the fointer points to by 100. 4. EXt if the user enters 9 , the output shoold be: 5 valuest 993 6 If the user enters 9, the output should be: 7 -9 is not a positive number (i) % 16 einctude diostreas 11. using nanespace std; 12. 13 int maln(? \& 14 15 \% vour solution qoes bere 16 I have some outputs to motch the run testr 17 % 19 I/dectanations of variobles and pointers: 25 27 // cateutations of the vatives if it is a posteive number

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!