In this C++ program, ask the user to type in two positive integers such that second number is greater than the 1st. Vali
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
In this C++ program, ask the user to type in two positive integers such that second number is greater than the 1st. Vali
In this C++ program, ask the user to type in two positiveintegers such that second number is greater than the 1st. Validatethat both integers are positive and that the 2nd number is greaterthan 1st. Find the sum of all odd numbers between the 1st integerand 2nd integer. For example if user type is 4 and 10 .. yourprogram will find 5 + 7 + 9 = 21.