c++ beginner, need help please
i am taking a c++ course online. i have read the book and looked online but i cant figure out how to do these problems. can somebody help me please.
Write a program that reads in three numbers from the user. The program then displays the highest number of the three and the average of the three.
Write a program that reads an integer, displays a message stating whether the integer is positive or negative, and continues reading and displaying until the user enters 0. Use a while loop.
Imagine that 10 int values are labeled by position: 1, 2, 3, etc. Write a program that reads 10 integers and tracks how many of them have the same value as their position. That is, if the first number read is 1, or the third number is 3, that counts as a match, and the output would be the number of matches (from 0 to 10). Use a single if statement and a loop.
please help me
|