i am trying to write a while loop that computes the total of the odd numbers between 1 and 99 inclusive. i wrote this but it just lists the numbers doesnt compute them. can somebody help?
Code:#include <iostream> using std::cout; using std::cin; using std::endl; int main() { int x = -1; while ( x < 100 ) { x = x + 2; cout << x << endl; } }