Computer Science, asked by tareqfaisal27, 9 months ago

Write Java program that performs the following:
Generates a random number between 0 and 10 and assigns this value to an integer counter, then read unspecified number of characters.
• If the character is a ‘+’ the counter increment by one ,
• If the character is a ‘-‘ the counter decrement by one,
• If the program read another character, then stop reading and print the value of count.
Can I have some help with this question? I tried many solutions but none of them was correct.

Answers

Answered by Mheet
0

Answer:

hello bro wait I was searching for your answer..... from a long time but none of my solution worked. I even surfed the net but it also went in vain. please check the question again that is it right.

please make me the BRAINLIEST

Similar questions