Home /
Expert Answers /
Computer Science /
c-integer-userval-is-read-from-input-for-each-number-from-0-to-userval-output-the-number-39-s-value-pa733
(Solved): c++ Integer userVal is read from input. For each number from 0 to userVal, output the number's value ...
c++
Integer userVal is read from input. For each number from 0 to userVal, output the number's value of dash characters ('-') followed by the number. End each output with a newline. Ex: If the input is 5 , then the output is: 0 ?1??2???3????4?????5 1 \#include using namespace std; int main() \{ int userVal; int i; int j; cin >> userVal; /* Your code goes here */ return ? \}