The difference ($2.30) could be due to a fee for an ATM withdrawal, a math error, writing in the wrong amount
cout<<"Enter a number in the range of 1 - 10 ";
cin>>num;
// check if the input is valid
if(num<0 || num > 10)
cout<<"Invalid Number"
// checking for appropriate output
switch(num){
case 1:
cout<< "|";
case 2:
cout<< "||";
case 3:
cout<< "|||";
case 4:
cout<< "|V";
case 5:
cout<< "V";
case 6:
cout<< "V|";
case 7:
cout<< "V||";
case 8:
cout<< "V|||";
case 9:
cout<< "|X";
case 10:
cout<< "X";
default :
cout<<" Nothing found";
}
The lines of code that write a statement that outputs variable userNum and ends with a newline is:
<h3>The code</h3>
#include <stdio.h>
int main(void) {
int userNum;
userNum = 15; // Program will be tested with values: 15, 40.
printf("%d\n", userNum);
return 0;
}
The above code writes a code in python (not Java) with the variable userNum and ends with a newline.
Read more about python programming here:
brainly.com/question/26497128
#SPJ1
ICS would bet he answer.
Good luck! (: