#include <iostream>
using namespace std;
int main()
{
int sum = 0;
int val = 50;
while (val <= 100)
sum += val++;
cout << "sum == " << sum << endl;
return 0;
}
#include <iostream>
using namespace std;
int main()
{
for (int i = 10; i >= 0; --i)
cout << i << " ";
cout << endl;
return 0;
}
#include <iostream>
using namespace std;
int main()
{
cout << "Enter 2 integers: ";
int v1, v2;
cin >> v1 >> v2;
int lower = min(v1, v2);
int upper = max(v1, v2);
for (int i = lower; i <= upper; ++i)
cout << i << " ";
cout << endl;
return 0;
}