<u>Answer:</u>
<em>int fNumber,scndNumber = -1, </em>
<em>dup = 0;
</em>
<em>do {
</em>
<em>cin >> fNumber;
</em>
<em>if ( scndNumber == -1) {
</em>
<em>scndNumber = fNumber;
</em>
<em>}
</em>
<em>else {
</em>
<em>if ( scndNumber == fNumber )
</em>
<em>duplicates++;
</em>
<em>else
</em>
<em>scndNumber = fNumber;
</em>
<em>}
</em>
<em>} while(fNumber > 0 ); </em>
<em>cout << dup;
</em>
<u>Explanation:</u>
Here three variables are declared to hold the first number which is used obtain all the inputs given by the user, second number to hold the value of <em>last encountered number and “dup” variable to count the number of duplicate values.</em>
<em>“Do-while”</em> loop help us to get the input check whether it is same as previous input if yes then it <em>adds to the duplicate</em> value otherwise the new previous value if stored.
Bsbsnsnsnsn jajwjemoeododhdhdw whajsjshtzzvsssnxbba. 3
An instance in my life where I rendered services was when I worked in a grocery store.
The roles of entrepreneur include:
- Allocating employees duties.
- Improving standard of living.
- Taking risks.
The three challenges that a young entrepreneur faces today include:
- Financial instability.
- Conflicts with education.
- Lack of business skills.
The top three characteristics of an entrepreneur include:
- Innovation.
- Confidence
- Risk taking
<h3>Who's an entrepreneur?</h3>
It should be noted that a entrepreneur is an individual who owns business and take risks.
The roles of entrepreneur include allocating employees duties, improving standard of living, and taking risks
Learn more about entrepreneur on:
brainly.com/question/353543
#SPJ1
Answer:
no I dont where is that at