Practical@Lesson 6: Looping & Repetition: for loop VS do-while loop

preview_player
Показать описание
Link to install Visual Studio with C++:

Questions:
1. Write a C++ program that uses loop to output all odd numbers between two values inputted by user.

2. Write a C++ program that asks the user to enter a number that is in the range of 10 to 50, inclusive. If the number is valid, then the program prints the message "Valid". If it is not within this range, the program prints "Invalid". The message "Done" is printed in both cases. The program will repeat until user asks to stop.
Рекомендации по теме
welcome to shbcf.ru